{"id":868,"date":"2024-05-12T15:37:49","date_gmt":"2024-05-12T20:37:49","guid":{"rendered":"https:\/\/www.scheh.com\/?p=868"},"modified":"2024-05-12T15:39:00","modified_gmt":"2024-05-12T20:39:00","slug":"unifi-lets-encrypt-ssl-with-api-keys","status":"publish","type":"post","link":"https:\/\/www.scheh.com\/index.php\/2024\/05\/12\/unifi-lets-encrypt-ssl-with-api-keys\/","title":{"rendered":"Unifi Let&#8217;s Encrypt SSL with API keys"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"868\" class=\"elementor elementor-868\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-15f61b76 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"15f61b76\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2886a6e4\" data-id=\"2886a6e4\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3ec70e69 elementor-widget elementor-widget-text-editor\" data-id=\"3ec70e69\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\n<p>There is a new method for using Let&#8217;s Encrypt SSL certificates on Unifi Network and Unifi Cloud Keys (Gen 1 \/ Gen 2) while using an API key instead of HTTPS verification. This method is for Cloudflare but should be able to be adapted for other DNS hosts.<\/p>\n\n<p>CFZONEID = Your Cloudflare Zone ID located on the domain overview page at the bottom right.<br \/>CFAPITOKEN = Your Cloudflare API token for the zone.<br \/>YOURUNIFIFQDN = The fully qualified domain name of your Unifi controller. It must end in the domain name of your CFZONEID. An example would be unifi.example.com<\/p>\n\n<p>curl https:\/\/get.acme.sh | sh -s email=my@example.com<br \/>export CF_Zone_ID=&#8221;CFZONEID&#8221;<br \/>export CF_Token=&#8221;CFAPITOKEN&#8221;<br \/>\/root\/.acme.sh\/acme.sh &#8211;set-default-ca &#8211;server letsencrypt<br \/>\/root\/.acme.sh\/acme.sh &#8211;issue &#8211;dns dns_cf -d YOURUNIFIFQDN<br \/>\/root\/.acme.sh\/acme.sh &#8211;deploy -d YOURUNIFIFQDN &#8211;deploy-hook unifi<br \/>crontab -l<br \/><br \/><a href=\"https:\/\/gist.github.com\/blackjack4494\/331e46678c0ea15a61c4cc6756c21969\">https:\/\/gist.github.com\/blackjack4494\/331e46678c0ea15a61c4cc6756c21969<\/a><\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>There is a new method for using Let&#8217;s Encrypt SSL certificates on Unifi Network and Unifi Cloud Keys (Gen 1 \/ Gen 2) while using an API key instead of HTTPS verification. This method is for Cloudflare but should be able to be adapted for other DNS hosts. CFZONEID = Your Cloudflare Zone ID located [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-868","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3eyIP-e0","_links":{"self":[{"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/posts\/868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/comments?post=868"}],"version-history":[{"count":3,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/posts\/868\/revisions"}],"predecessor-version":[{"id":871,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/posts\/868\/revisions\/871"}],"wp:attachment":[{"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/media?parent=868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/categories?post=868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/tags?post=868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}