浏览代码

use letsencrypt server to renew certs if no server was saved.

neilpang 4 年之前
父节点
当前提交
2d07185300
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      acme.sh

+ 5 - 0
acme.sh

@@ -5043,6 +5043,11 @@ renew() {
 
   . "$DOMAIN_CONF"
   _debug Le_API "$Le_API"
+  if [ -z "$Le_API" ]; then
+    #if this is from an old version, Le_API is empty,
+    #so, we force to use letsencrypt server
+    Le_API="$CA_LETSENCRYPT_V2"
+  fi
 
   if [ "$Le_API" ]; then
     if [ "$Le_API" != "$ACME_DIRECTORY" ]; then