{"id":105,"date":"2019-02-11T09:45:34","date_gmt":"2019-02-11T08:45:34","guid":{"rendered":"http:\/\/admin.bejkon.se\/?p=105"},"modified":"2019-02-14T12:06:51","modified_gmt":"2019-02-14T11:06:51","slug":"ssl-unifi-controller","status":"publish","type":"post","link":"https:\/\/admin.bejkon.se\/?p=105","title":{"rendered":"SSL Unifi controller"},"content":{"rendered":"<p><strong>Docker p\u00e5 synology:<\/strong><\/p>\n<ul>\n<li>P\u00e5 Synology (har lagt nedanst\u00e5ende i en fil som bara \u00e4r att k\u00f6ra, cp_cert.sh)<br \/>\n<code>sudo -s<br \/>\nopenssl pkcs12 -export -in \/path\/to\/cert\/cert.pem -inkey \/path\/to\/cert\/privkey.pem -out \/path\/to\/outcert\/unifi.p12 -name unifi -CAfile \/path\/to\/cert\/fullchain.pem -caname root -password pass:temppass<br \/>\n<\/code><\/li>\n<\/ul>\n<ul>\n<li>I docker container<br \/>\n<code><br \/>\nkeytool -importkeystore -deststorepass aircontrolenterprise -destkeypass aircontrolenterprise -destkeystore \/var\/lib\/unifi\/keystore -srckeystore \/mnt\/syno\/unifi.p12 -srcstoretype PKCS12 -srcstorepass temppass -alias unifi -noprompt<br \/>\nrm \/mnt\/syno\/*<\/code><\/li>\n<\/ul>\n<ul>\n<li>Restart unifi<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Docker p\u00e5 synology: P\u00e5 Synology (har lagt nedanst\u00e5ende i en fil som bara \u00e4r att k\u00f6ra, cp_cert.sh) sudo -s openssl pkcs12 -export -in \/path\/to\/cert\/cert.pem -inkey \/path\/to\/cert\/privkey.pem -out \/path\/to\/outcert\/unifi.p12 -name unifi -CAfile \/path\/to\/cert\/fullchain.pem -caname root -password pass:temppass I docker container keytool -importkeystore -deststorepass aircontrolenterprise -destkeypass aircontrolenterprise -destkeystore \/var\/lib\/unifi\/keystore -srckeystore \/mnt\/syno\/unifi.p12 -srcstoretype PKCS12 -srcstorepass temppass -alias unifi &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/admin.bejkon.se\/?p=105\" class=\"more-link\">Forts\u00e4tt l\u00e4sa<span class=\"screen-reader-text\"> \u201dSSL Unifi controller\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[24,13,23],"class_list":["post-105","post","type-post","status-publish","format-standard","hentry","category-synology","tag-ssl","tag-synology","tag-unifi"],"_links":{"self":[{"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=\/wp\/v2\/posts\/105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=105"}],"version-history":[{"count":4,"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=\/wp\/v2\/posts\/105\/revisions"}],"predecessor-version":[{"id":109,"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=\/wp\/v2\/posts\/105\/revisions\/109"}],"wp:attachment":[{"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}