{"id":1344,"date":"2023-07-04T12:49:53","date_gmt":"2023-07-04T17:49:53","guid":{"rendered":"https:\/\/www.nathanhunstad.com\/blog\/?p=1344"},"modified":"2023-07-04T12:49:54","modified_gmt":"2023-07-04T17:49:54","slug":"how-to-replace-unifi-networks-default-tls-certificate","status":"publish","type":"post","link":"https:\/\/www.nathanhunstad.com\/blog\/2023\/07\/how-to-replace-unifi-networks-default-tls-certificate\/","title":{"rendered":"How to replace Unifi Network&#8217;s default TLS certificate"},"content":{"rendered":"\n<p>Sometimes it seems like this blog is all <a href=\"https:\/\/www.nathanhunstad.com\/blog\/tag\/pki\/\" target=\"_blank\" rel=\"noopener\" title=\"\">PKI<\/a>, all the time. It&#8217;s really not, although I&#8217;ll have to admit a bit of an obsession recently with making sure all of my certificates were in order. I&#8217;ve taken care of <a href=\"https:\/\/www.nathanhunstad.com\/blog\/2023\/05\/easily-generate-an-https-certificate-for-kibana-with-bonus-ai\/\" target=\"_blank\" rel=\"noopener\" title=\"\">Kibana<\/a>, my EdgeOS router, and my TPLink switch, but there was one tool I used that was throwing errors and it was annoying me: the Unifi Network web app. So I decided that I had to fix it, and it wasn&#8217;t much trouble at all.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">About Unifi Web<\/h2>\n\n\n\n<p>I have the Unifi web app running on one of my Linux boxes. It&#8217;s a Java app, which means that unlike the other certificates I&#8217;ve been dealing with, which have been in PEM format, this is a Java keystore. Fortunately, I&#8217;ve some experience with Java keystores from my day job, where some of our app runs on Java. The main tool for interfacing with keystores is <a href=\"https:\/\/docs.oracle.com\/javase\/8\/docs\/technotes\/tools\/unix\/keytool.html\" target=\"_blank\" rel=\"noopener\" title=\"\">keytool<\/a>, which allows you to create and modify keystores.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Updating the Certificate<\/h2>\n\n\n\n<p>To start, I generated a private key, then a CSR <a href=\"https:\/\/www.nathanhunstad.com\/blog\/2023\/01\/adding-a-san-to-a-certificate-using-openssl\/\" target=\"_blank\" rel=\"noopener\" title=\"\">similar to what I&#8217;ve done before<\/a>. The next step was to grab the keystore used by Unifi, which is at <code>\/var\/lib\/unifi\/keystore<\/code>. I made a copy of it just in case, then the fun began.<\/p>\n\n\n\n<p>My next step was to import the trusted root and intermediate certs that make up the chain. To do so, I grabbed the root and intermediate certs (NOT the private keys of course), and ran the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>keytool -import -trustcacerts -alias root -file .\/root.crt -keystore .\/keystore<br>keytool -import -trustcacerts -alias intermediate -file .\/ia.crt -keystore .\/keystore<\/code><\/pre>\n\n\n\n<p>Keystores have a password, and the default password for Unifi is <code>aircontrolenterprise<\/code>.<\/p>\n\n\n\n<p>Although importing trusted CA certs from CRT files is easy using keytool, importing a cert\/private key pair is oddly not. So the next step was to convert the cert and key into a PKCS12-formatted file using openssl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>openssl pkcs12 -export -in server.crt -inkey server.key -out server.p12 -name server<\/code><\/pre>\n\n\n\n<p>That prompts for a password; remember it for the next command. We can now convert that PKCS12-formatted file to a Java keystore file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>keytool -importkeystore -deststorepass changeme -destkeypass changeme -destkeystore server.keystore -\nsrckeystore server.p12 -srcstoretype PKCS12 -srcstorepass changeme -alias server<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Putting It Together<\/h2>\n\n\n\n<p>Almost there! Another word about Java keystore files: each object has an alias, as you may have noticed in the commands above. The alias for the cert\/key pair used by the Unifi Network app is <code>unifi<\/code>. However, since you can&#8217;t import a new pair using that alias as it is already in use, we&#8217;ll import the server object we just created, delete the existing unifi object, then rename the new one:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>keytool -importkeystore -srckeystore .\/server.keystore -destkeystore keystore\nkeytool -delete -alias unifi -keystore .\/keystore\nkeytool -changealias -alias server -destalias unifi -keystore .\/keystore<\/code><\/pre>\n\n\n\n<p>I restarted the Unifi service, et voil\u00e0!<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.nathanhunstad.com\/blog\/wp-content\/uploads\/2023\/06\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"379\" height=\"185\" src=\"https:\/\/www.nathanhunstad.com\/blog\/wp-content\/uploads\/2023\/06\/image.png\" alt=\"\" class=\"wp-image-1345\" srcset=\"https:\/\/www.nathanhunstad.com\/blog\/wp-content\/uploads\/2023\/06\/image.png 379w, https:\/\/www.nathanhunstad.com\/blog\/wp-content\/uploads\/2023\/06\/image-300x146.png 300w\" sizes=\"auto, (max-width: 379px) 100vw, 379px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.nathanhunstad.com\/blog\/wp-content\/uploads\/2023\/06\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"550\" height=\"659\" src=\"https:\/\/www.nathanhunstad.com\/blog\/wp-content\/uploads\/2023\/06\/image-1.png\" alt=\"\" class=\"wp-image-1346\" srcset=\"https:\/\/www.nathanhunstad.com\/blog\/wp-content\/uploads\/2023\/06\/image-1.png 550w, https:\/\/www.nathanhunstad.com\/blog\/wp-content\/uploads\/2023\/06\/image-1-250x300.png 250w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/a><\/figure>\n\n\n\n<p>A valid cert using my own internal PKI. No more nasty browser warnings for me.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog post, I explain how to replace the default Unifi Web certificate stored in a Java keystore with your own certificate.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[127],"tags":[259,285,299],"class_list":["post-1344","post","type-post","status-publish","format-standard","hentry","category-security","tag-pki","tag-security","tag-unifi","entry"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"In this blog post, I explain how to replace the default Unifi Web certificate stored in a Java keystore with your own certificate.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Nathan Hunstad\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.nathanhunstad.com\/blog\/2023\/07\/how-to-replace-unifi-networks-default-tls-certificate\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"The blog of Nathan Hunstad |\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How to replace Unifi Network\u2019s default TLS certificate | The blog of Nathan Hunstad\" \/>\n\t\t<meta property=\"og:description\" content=\"In this blog post, I explain how to replace the default Unifi Web certificate stored in a Java keystore with your own certificate.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.nathanhunstad.com\/blog\/2023\/07\/how-to-replace-unifi-networks-default-tls-certificate\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.nathanhunstad.com\/blog\/wp-content\/uploads\/2023\/05\/facicon-stretched.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.nathanhunstad.com\/blog\/wp-content\/uploads\/2023\/05\/facicon-stretched.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"484\" \/>\n\t\t<meta property=\"og:image:height\" content=\"258\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-07-04T17:49:53+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-07-04T17:49:54+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to replace Unifi Network\u2019s default TLS certificate | The blog of Nathan Hunstad\" \/>\n\t\t<meta name=\"twitter:description\" content=\"In this blog post, I explain how to replace the default Unifi Web certificate stored in a Java keystore with your own certificate.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.nathanhunstad.com\/blog\/wp-content\/uploads\/2023\/05\/facicon-stretched.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/2023\\\/07\\\/how-to-replace-unifi-networks-default-tls-certificate\\\/#article\",\"name\":\"How to replace Unifi Network\\u2019s default TLS certificate | The blog of Nathan Hunstad\",\"headline\":\"How to replace Unifi Network&#8217;s default TLS certificate\",\"author\":{\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/author\\\/huns0004\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/image.png\",\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/2023\\\/07\\\/how-to-replace-unifi-networks-default-tls-certificate\\\/#articleImage\",\"width\":379,\"height\":185},\"datePublished\":\"2023-07-04T12:49:53-05:00\",\"dateModified\":\"2023-07-04T12:49:54-05:00\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/2023\\\/07\\\/how-to-replace-unifi-networks-default-tls-certificate\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/2023\\\/07\\\/how-to-replace-unifi-networks-default-tls-certificate\\\/#webpage\"},\"articleSection\":\"Security, PKI, Security, Unifi\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/2023\\\/07\\\/how-to-replace-unifi-networks-default-tls-certificate\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/category\\\/security\\\/#listItem\",\"name\":\"Security\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/category\\\/security\\\/#listItem\",\"position\":2,\"name\":\"Security\",\"item\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/category\\\/security\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/2023\\\/07\\\/how-to-replace-unifi-networks-default-tls-certificate\\\/#listItem\",\"name\":\"How to replace Unifi Network&#8217;s default TLS certificate\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/2023\\\/07\\\/how-to-replace-unifi-networks-default-tls-certificate\\\/#listItem\",\"position\":3,\"name\":\"How to replace Unifi Network&#8217;s default TLS certificate\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/category\\\/security\\\/#listItem\",\"name\":\"Security\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/#person\",\"name\":\"Nathan Hunstad\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/2023\\\/07\\\/how-to-replace-unifi-networks-default-tls-certificate\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c5113ffdbe47c3095654b9158d4f067a549f1c82013a3f3c5dd7773d3f4b5be0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Nathan Hunstad\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/author\\\/huns0004\\\/#author\",\"url\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/author\\\/huns0004\\\/\",\"name\":\"Nathan Hunstad\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/2023\\\/07\\\/how-to-replace-unifi-networks-default-tls-certificate\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c5113ffdbe47c3095654b9158d4f067a549f1c82013a3f3c5dd7773d3f4b5be0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Nathan Hunstad\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/2023\\\/07\\\/how-to-replace-unifi-networks-default-tls-certificate\\\/#webpage\",\"url\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/2023\\\/07\\\/how-to-replace-unifi-networks-default-tls-certificate\\\/\",\"name\":\"How to replace Unifi Network\\u2019s default TLS certificate | The blog of Nathan Hunstad\",\"description\":\"In this blog post, I explain how to replace the default Unifi Web certificate stored in a Java keystore with your own certificate.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/2023\\\/07\\\/how-to-replace-unifi-networks-default-tls-certificate\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/author\\\/huns0004\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/author\\\/huns0004\\\/#author\"},\"datePublished\":\"2023-07-04T12:49:53-05:00\",\"dateModified\":\"2023-07-04T12:49:54-05:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/\",\"name\":\"The blog of Nathan Hunstad\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.nathanhunstad.com\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to replace Unifi Network\u2019s default TLS certificate | The blog of Nathan Hunstad","description":"In this blog post, I explain how to replace the default Unifi Web certificate stored in a Java keystore with your own certificate.","canonical_url":"https:\/\/www.nathanhunstad.com\/blog\/2023\/07\/how-to-replace-unifi-networks-default-tls-certificate\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.nathanhunstad.com\/blog\/2023\/07\/how-to-replace-unifi-networks-default-tls-certificate\/#article","name":"How to replace Unifi Network\u2019s default TLS certificate | The blog of Nathan Hunstad","headline":"How to replace Unifi Network&#8217;s default TLS certificate","author":{"@id":"https:\/\/www.nathanhunstad.com\/blog\/author\/huns0004\/#author"},"publisher":{"@id":"https:\/\/www.nathanhunstad.com\/blog\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/www.nathanhunstad.com\/blog\/wp-content\/uploads\/2023\/06\/image.png","@id":"https:\/\/www.nathanhunstad.com\/blog\/2023\/07\/how-to-replace-unifi-networks-default-tls-certificate\/#articleImage","width":379,"height":185},"datePublished":"2023-07-04T12:49:53-05:00","dateModified":"2023-07-04T12:49:54-05:00","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/www.nathanhunstad.com\/blog\/2023\/07\/how-to-replace-unifi-networks-default-tls-certificate\/#webpage"},"isPartOf":{"@id":"https:\/\/www.nathanhunstad.com\/blog\/2023\/07\/how-to-replace-unifi-networks-default-tls-certificate\/#webpage"},"articleSection":"Security, PKI, Security, Unifi"},{"@type":"BreadcrumbList","@id":"https:\/\/www.nathanhunstad.com\/blog\/2023\/07\/how-to-replace-unifi-networks-default-tls-certificate\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.nathanhunstad.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.nathanhunstad.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.nathanhunstad.com\/blog\/category\/security\/#listItem","name":"Security"}},{"@type":"ListItem","@id":"https:\/\/www.nathanhunstad.com\/blog\/category\/security\/#listItem","position":2,"name":"Security","item":"https:\/\/www.nathanhunstad.com\/blog\/category\/security\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.nathanhunstad.com\/blog\/2023\/07\/how-to-replace-unifi-networks-default-tls-certificate\/#listItem","name":"How to replace Unifi Network&#8217;s default TLS certificate"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.nathanhunstad.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.nathanhunstad.com\/blog\/2023\/07\/how-to-replace-unifi-networks-default-tls-certificate\/#listItem","position":3,"name":"How to replace Unifi Network&#8217;s default TLS certificate","previousItem":{"@type":"ListItem","@id":"https:\/\/www.nathanhunstad.com\/blog\/category\/security\/#listItem","name":"Security"}}]},{"@type":"Person","@id":"https:\/\/www.nathanhunstad.com\/blog\/#person","name":"Nathan Hunstad","image":{"@type":"ImageObject","@id":"https:\/\/www.nathanhunstad.com\/blog\/2023\/07\/how-to-replace-unifi-networks-default-tls-certificate\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/c5113ffdbe47c3095654b9158d4f067a549f1c82013a3f3c5dd7773d3f4b5be0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Nathan Hunstad"}},{"@type":"Person","@id":"https:\/\/www.nathanhunstad.com\/blog\/author\/huns0004\/#author","url":"https:\/\/www.nathanhunstad.com\/blog\/author\/huns0004\/","name":"Nathan Hunstad","image":{"@type":"ImageObject","@id":"https:\/\/www.nathanhunstad.com\/blog\/2023\/07\/how-to-replace-unifi-networks-default-tls-certificate\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/c5113ffdbe47c3095654b9158d4f067a549f1c82013a3f3c5dd7773d3f4b5be0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Nathan Hunstad"}},{"@type":"WebPage","@id":"https:\/\/www.nathanhunstad.com\/blog\/2023\/07\/how-to-replace-unifi-networks-default-tls-certificate\/#webpage","url":"https:\/\/www.nathanhunstad.com\/blog\/2023\/07\/how-to-replace-unifi-networks-default-tls-certificate\/","name":"How to replace Unifi Network\u2019s default TLS certificate | The blog of Nathan Hunstad","description":"In this blog post, I explain how to replace the default Unifi Web certificate stored in a Java keystore with your own certificate.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.nathanhunstad.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.nathanhunstad.com\/blog\/2023\/07\/how-to-replace-unifi-networks-default-tls-certificate\/#breadcrumblist"},"author":{"@id":"https:\/\/www.nathanhunstad.com\/blog\/author\/huns0004\/#author"},"creator":{"@id":"https:\/\/www.nathanhunstad.com\/blog\/author\/huns0004\/#author"},"datePublished":"2023-07-04T12:49:53-05:00","dateModified":"2023-07-04T12:49:54-05:00"},{"@type":"WebSite","@id":"https:\/\/www.nathanhunstad.com\/blog\/#website","url":"https:\/\/www.nathanhunstad.com\/blog\/","name":"The blog of Nathan Hunstad","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.nathanhunstad.com\/blog\/#person"}}]},"og:locale":"en_US","og:site_name":"The blog of Nathan Hunstad |","og:type":"article","og:title":"How to replace Unifi Network\u2019s default TLS certificate | The blog of Nathan Hunstad","og:description":"In this blog post, I explain how to replace the default Unifi Web certificate stored in a Java keystore with your own certificate.","og:url":"https:\/\/www.nathanhunstad.com\/blog\/2023\/07\/how-to-replace-unifi-networks-default-tls-certificate\/","og:image":"https:\/\/www.nathanhunstad.com\/blog\/wp-content\/uploads\/2023\/05\/facicon-stretched.jpg","og:image:secure_url":"https:\/\/www.nathanhunstad.com\/blog\/wp-content\/uploads\/2023\/05\/facicon-stretched.jpg","og:image:width":484,"og:image:height":258,"article:published_time":"2023-07-04T17:49:53+00:00","article:modified_time":"2023-07-04T17:49:54+00:00","twitter:card":"summary","twitter:title":"How to replace Unifi Network\u2019s default TLS certificate | The blog of Nathan Hunstad","twitter:description":"In this blog post, I explain how to replace the default Unifi Web certificate stored in a Java keystore with your own certificate.","twitter:image":"https:\/\/www.nathanhunstad.com\/blog\/wp-content\/uploads\/2023\/05\/facicon-stretched.jpg"},"aioseo_meta_data":{"post_id":"1344","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-06-29 02:13:13","updated":"2025-06-04 06:07:13","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.nathanhunstad.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.nathanhunstad.com\/blog\/category\/security\/\" title=\"Security\">Security<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to replace Unifi Network\u2019s default TLS certificate\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.nathanhunstad.com\/blog"},{"label":"Security","link":"https:\/\/www.nathanhunstad.com\/blog\/category\/security\/"},{"label":"How to replace Unifi Network&#8217;s default TLS certificate","link":"https:\/\/www.nathanhunstad.com\/blog\/2023\/07\/how-to-replace-unifi-networks-default-tls-certificate\/"}],"_links":{"self":[{"href":"https:\/\/www.nathanhunstad.com\/blog\/wp-json\/wp\/v2\/posts\/1344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nathanhunstad.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nathanhunstad.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nathanhunstad.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nathanhunstad.com\/blog\/wp-json\/wp\/v2\/comments?post=1344"}],"version-history":[{"count":2,"href":"https:\/\/www.nathanhunstad.com\/blog\/wp-json\/wp\/v2\/posts\/1344\/revisions"}],"predecessor-version":[{"id":1349,"href":"https:\/\/www.nathanhunstad.com\/blog\/wp-json\/wp\/v2\/posts\/1344\/revisions\/1349"}],"wp:attachment":[{"href":"https:\/\/www.nathanhunstad.com\/blog\/wp-json\/wp\/v2\/media?parent=1344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nathanhunstad.com\/blog\/wp-json\/wp\/v2\/categories?post=1344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nathanhunstad.com\/blog\/wp-json\/wp\/v2\/tags?post=1344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}