From 7c40b538337995c3fb38a35b096c890b092de6bb Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 14 Mar 2017 22:26:35 +0000 Subject: [PATCH] use letsencrypt for ssl --- src/freedombone-utils-web | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/freedombone-utils-web b/src/freedombone-utils-web index 05972497..61b6409a 100755 --- a/src/freedombone-utils-web +++ b/src/freedombone-utils-web @@ -124,12 +124,8 @@ function nginx_ssl { echo ' ssl_stapling off;' >> $filename echo ' ssl_stapling_verify off;' >> $filename echo ' ssl on;' >> $filename - if [ -f /etc/ssl/certs/${domain_name}.pem ]; then - echo " ssl_certificate /etc/ssl/certs/${domain_name}.pem;" >> $filename - else - echo " ssl_certificate /etc/ssl/certs/${domain_name}.crt;" >> $filename - fi - echo " ssl_certificate_key /etc/ssl/private/${domain_name}.key;" >> $filename + echo " ssl_certificate /etc/letsencrypt/live/${domain_name}/fullchain.pem;" >> $filename + echo " ssl_certificate_key /etc/letsencrypt/live/${domain_name}/privkey.pem;" >> $filename echo " ssl_dhparam /etc/ssl/certs/${domain_name}.dhparam;" >> $filename echo '' >> $filename echo ' ssl_session_cache builtin:1000 shared:SSL:10m;' >> $filename