From 3de45939647191c66cf3e188bce31087023552fc Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Mon, 18 Nov 2019 18:04:05 +0100 Subject: [PATCH] Added QNAP NAS to update_certificate script --- update_certificate | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/update_certificate b/update_certificate index 1ea4e59..11f64c6 100755 --- a/update_certificate +++ b/update_certificate @@ -37,8 +37,22 @@ ssh $user@$host fwconsole sysadmin updatecert #ssh $user@$host systemctl reload httpd.service echo "" +# NAS +echo " ------------------------------- " +echo "| Updating NAS Certificate |" +echo " ------------------------------- " +host="nas.giorgioravera.it" +user="admin" +scp /etc/letsencrypt/live/server.giorgioravera.it/cert.pem $user@$host:/etc/stunnel +scp /etc/letsencrypt/live/server.giorgioravera.it/privkey.pem $user@$host:/etc/stunnel +ssh $user@$host 'cat /etc/stunnel/privkey.pem > /etc/stunnel/stunnel.pem' +ssh $user@$host 'cat /etc/stunnel/cert.pem >> /etc/stunnel/stunnel.pem' +ssh $user@$host /etc/init.d/stunnel.sh restart +echo "" + # Firewall echo " ------------------------------- " echo "| Updating Firewall Certificate |" echo " ------------------------------- " update_certificate_firewall +echo "" -- 2.47.3