From: Giorgio Ravera Date: Wed, 15 Jul 2026 13:05:45 +0000 (+0200) Subject: Added network.giorgioravera.it X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=975781643d976b04e2ed46ed5ee04f2fa116dedb;p=scripts.git Added network.giorgioravera.it --- diff --git a/update_certificate b/update_certificate index d216f13..3f25125 100755 --- a/update_certificate +++ b/update_certificate @@ -19,7 +19,7 @@ DST_TMP_CHAIN="$DST_TMP_PATH/chain.pem" DST_TMP_FULLCHAIN="$DST_TMP_PATH/fullchain.pem" DST_TMP_SERVER="$DST_TMP_PATH/server.pem" PATH="$PATH:/usr/local/bin" -SECRET_FILE=".secret" +SECRET_FILE="/usr/local/bin/.secret" # Copy Certificate # Copy Certificate in $dst folder @@ -134,6 +134,23 @@ function update_firewall () { echo "" } +# Update Network +function update_network () { + echo " ------------------------------------ " + echo "| Updating Network Certificate |" + echo " ------------------------------------ " + HOST="192.168.0.51" + USER="root" + COMMAND="openssl pkcs12 -export -out /etc/ssl/giorgioravera.it/server.pfx \ + -inkey /etc/ssl/giorgioravera.it/privkey.pem \ + -in /etc/ssl/giorgioravera.it/cert.pem \ + -certfile /etc/ssl/giorgioravera.it/chain.pem \ + -passout pass: && + docker container restart dns-server" + copy_certificate + echo "" +} + # Update Fritz 530 AX function update_fritz () { echo " ------------------------------------ " @@ -209,7 +226,7 @@ function update_all () { update_server update_docker - #update_asterisk + update_asterisk update_nas update_firewall update_fritz @@ -249,6 +266,10 @@ function parse_options () update_firewall shift ;; + network ) + update_network + shift + ;; fritz ) update_fritz shift