From fdf71305f1ce6f50daf47833af0f61aeba26eaf0 Mon Sep 17 00:00:00 2001 From: sridhar v Date: Tue, 22 May 2018 10:23:05 +0530 Subject: [PATCH] Fixes #1711 : SSL connectivity path for ssl keys are changed --- restyaboard-ssl.conf | 4 ++-- restyaboard.sh | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/restyaboard-ssl.conf b/restyaboard-ssl.conf index 6ed310b8a..909d70d28 100644 --- a/restyaboard-ssl.conf +++ b/restyaboard-ssl.conf @@ -1,7 +1,7 @@ listen 443 ssl; - ssl_certificate /etc/nginx/ssl/restya.com.crt; - ssl_certificate_key /etc/nginx/ssl/restya.com.key; + ssl_certificate /etc/letsencrypt/live/restya.com/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/restya.com/privkey.pem; ssl_session_cache shared:SSL:1m; ssl_session_timeout 15m; diff --git a/restyaboard.sh b/restyaboard.sh index 66813914d..29bc1a36d 100755 --- a/restyaboard.sh +++ b/restyaboard.sh @@ -1243,8 +1243,6 @@ unzip certbot-master.zip cd /opt/certbot-master/ sudo -H ./certbot-auto certonly --webroot --no-bootstrap -d $webdir -w $dir - sed -i "s/nginx\/ssl\/restya\.com\.crt/letsencrypt\/live\/$webdir\/fullchain\.pem/g" ${DOWNLOAD_DIR}/restyaboard-ssl.conf - sed -i "s/nginx\/ssl\/restya\.com\.key/letsencrypt\/live\/$webdir\/privkey\.pem/g" ${DOWNLOAD_DIR}/restyaboard-ssl.conf sed -i "s/restya\.com/$webdir/g" ${DOWNLOAD_DIR}/restyaboard-ssl.conf sed -i "/client_max_body_size 300M;/r ${DOWNLOAD_DIR}/restyaboard-ssl.conf" /etc/nginx/conf.d/restyaboard.conf