stevejenkins / unifi-linux-utils

Helpful Linux / Unix scripts for admins of Ubiquiti (UBNT) UniFi wireless products
https://www.stevejenkins.com/blog/tag/unifi/
MIT License
695 stars 127 forks source link

Update unifi_ssl_import.sh #31

Closed roadrunnerspeed closed 5 years ago

roadrunnerspeed commented 5 years ago

Amending last PR Merge.

The changes added previous streamlined the Let's Encrypt Process but in the process broke the script for user using their own certs. Resulting in errors:

Now the script should check if the signed cert exists, if it does add that to the export. (alternative would be to create a combined file, but I personally prefer to keep CA and CRT seperate)

Also added the "deststoretype" option as controller was complaining about security.

Feel free to optimise.