Include key

This commit is contained in:
Bob Mottram 2015-11-04 10:29:22 +00:00
parent e4d9094169
commit a9736a6fe1
1 changed files with 11 additions and 9 deletions

View File

@ -46,10 +46,12 @@ function show_help {
function renew_startssl {
echo "Renewing Let's Encrypt certificate"
letsencrypt renew --cert-path /etc/ssl/certs/$HOSTNAME.pem
if [ ! "$?" = "0" ]; then
echo "Unable to renew Let's encrypt certificate"
fi
letsencrypt renew \
--cert-path /etc/ssl/certs/$HOSTNAME.crt \
--key-path /etc/ssl/private/$HOSTNAME.key
if [ ! "$?" = "0" ]; then
echo "Unable to renew Let's encrypt certificate"
fi
}
function renew_startssl {
@ -192,11 +194,11 @@ fi
if [[ $PROVIDER == 'startssl' || $PROVIDER == 'StartSSL' ]]; then
renew_startssl
else
if [[ $PROVIDER == 'letsencrypt' ]]; then
renew_letsencrypt
else
echo "$PROVIDER is not currently supported"
fi
if [[ $PROVIDER == 'letsencrypt' ]]; then
renew_letsencrypt
else
echo "$PROVIDER is not currently supported"
fi
fi
exit 0