mirror of
https://github.com/mtan93/unifi-letsencrypt.git
synced 2026-03-08 05:31:58 +00:00
15 lines
998 B
Markdown
15 lines
998 B
Markdown
# unifi-letsencrypt
|
|
Scripts to allow easy import of LE certs into keystore for Unifi on Ubuntu/Debian after use of certbot.
|
|
|
|
<p>Script was designed to avoid:</p>
|
|
<pre>Warning:
|
|
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /var/lib/unifi/keystore -destkeystore /var/lib/unifi/keystore -deststoretype pkcs12".</pre>
|
|
<p>after running certbot (Please make sure that your certs were placed in /etc/letsencrypt/live/yourdomain.name/ and not <span>/etc/letsencrypt/live/yourdomain.name-0001,2,3,etc/.)</span></p>
|
|
<p> </p>
|
|
<p>Paste into terminal/ssh:</p>
|
|
<p> </p>
|
|
<pre>wget https://raw.githubusercontent.com/mtan93/unifi-letsencrypt/master/unifi_le.sh && chmod +x unifi_le.sh && ./unifi_le.sh
|
|
</pre>
|
|
<p> </p>
|
|
<p><span>Then simply enter your domain name (without http/s) when asked to do so and the script will do the rest for you.</span></p>
|