Bob Mottram il y a 9 ans
Parent
révision
a9736a6fe1
1 fichiers modifiés avec 11 ajouts et 9 suppressions
  1. 11
    9
      src/freedombone-renew-cert

+ 11
- 9
src/freedombone-renew-cert Voir le fichier

46
 
46
 
47
 function renew_startssl {
47
 function renew_startssl {
48
     echo "Renewing Let's Encrypt certificate"
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
 function renew_startssl {
57
 function renew_startssl {
192
 if [[ $PROVIDER == 'startssl' || $PROVIDER == 'StartSSL' ]]; then
194
 if [[ $PROVIDER == 'startssl' || $PROVIDER == 'StartSSL' ]]; then
193
     renew_startssl
195
     renew_startssl
194
 else
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
 fi
202
 fi
201
 
203
 
202
 exit 0
204
 exit 0