From: <abe...@us...> - 2017-01-15 16:32:03
|
Revision: 8098 http://sourceforge.net/p/astlinux/code/8098 Author: abelbeck Date: 2017-01-15 16:32:01 +0000 (Sun, 15 Jan 2017) Log Message: ----------- acme, astlinux.sh changes by David Kerr Modified Paths: -------------- branches/1.0/package/acme/astlinux.sh Modified: branches/1.0/package/acme/astlinux.sh =================================================================== --- branches/1.0/package/acme/astlinux.sh 2017-01-15 16:16:59 UTC (rev 8097) +++ branches/1.0/package/acme/astlinux.sh 2017-01-15 16:32:01 UTC (rev 8098) @@ -37,20 +37,20 @@ fi sleep 1 service lighttpd init + logger -s -t ${0##*/}[$$] "${BASH_SOURCE##*/}:$LINENO New ACME certificates deployed for HTTPS and Lighttpd restarted" fi if [ "$SIPTLSCERT_ACME" = "yes" ]; then -# TODO. Not sure what the right files to use are. Need to test. -# See.. -# https://web.johncook.uk/articles/computing/lets-encrypt-launch -# https://www.jedwarddurrett.com/20160604162607.php - mkdir -p /mnt/kd/ssl/sip-tls/keys - cat "$_cfullchain" > /mnt/kd/ssl/sip-tls/keys/server.crt + if [ -f "$_cfullchain" ]; then + cat "$_cfullchain" > /mnt/kd/ssl/sip-tls/keys/server.crt + else + cat "$_ccert" > /mnt/kd/ssl/sip-tls/keys/server.crt + fi cat "$_ckey" > /mnt/kd/ssl/sip-tls/keys/server.key chmod 600 /mnt/kd/ssl/sip-tls/keys/server.key -# How to tell Asterisk to reload certificate? -# Hopefully just a reload (of just SIP or PJSIP?) and not a restart + asterisk -rx "core restart when convenient" >/dev/null 2>&1 & + logger -s -t ${0##*/}[$$] "${BASH_SOURCE##*/}:$LINENO New ACME certificates deployed for SIP-TLS and Asterisk restart when convenient requested" fi return 0 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |