|
@@ -46,10 +46,12 @@ function show_help {
|
46
|
46
|
|
47
|
47
|
function renew_startssl {
|
48
|
48
|
echo "Renewing Let's Encrypt certificate"
|
49
|
|
- letsencrypt renew --cert-path /etc/ssl/certs/$HOSTNAME.pem
|
50
|
|
- if [ ! "$?" = "0" ]; then
|
51
|
|
- echo "Unable to renew Let's encrypt certificate"
|
52
|
|
- fi
|
|
49
|
+ letsencrypt renew \
|
|
50
|
+ --cert-path /etc/ssl/certs/$HOSTNAME.crt \
|
|
51
|
+ --key-path /etc/ssl/private/$HOSTNAME.key
|
|
52
|
+ if [ ! "$?" = "0" ]; then
|
|
53
|
+ echo "Unable to renew Let's encrypt certificate"
|
|
54
|
+ fi
|
53
|
55
|
}
|
54
|
56
|
|
55
|
57
|
function renew_startssl {
|
|
@@ -192,11 +194,11 @@ fi
|
192
|
194
|
if [[ $PROVIDER == 'startssl' || $PROVIDER == 'StartSSL' ]]; then
|
193
|
195
|
renew_startssl
|
194
|
196
|
else
|
195
|
|
- if [[ $PROVIDER == 'letsencrypt' ]]; then
|
196
|
|
- renew_letsencrypt
|
197
|
|
- else
|
198
|
|
- echo "$PROVIDER is not currently supported"
|
199
|
|
- fi
|
|
197
|
+ if [[ $PROVIDER == 'letsencrypt' ]]; then
|
|
198
|
+ renew_letsencrypt
|
|
199
|
+ else
|
|
200
|
+ echo "$PROVIDER is not currently supported"
|
|
201
|
+ fi
|
200
|
202
|
fi
|
201
|
203
|
|
202
|
204
|
exit 0
|