Example: UpdateSSLCert.sh: Make CERT_NAME meet the specifications

This commit is contained in:
Zhong Lufan 2021-04-18 15:53:24 +08:00
parent fb2607af08
commit f3aeb63c97
No known key found for this signature in database
GPG Key ID: 373C08F7FFF84D26
1 changed files with 2 additions and 2 deletions

View File

@ -38,8 +38,8 @@ get_key() {
# shellcheck disable=SC2154
DOMAIN=$Le_Domain
# 证书名称
CERT_NAME="${DOMAIN}-$(date +%s)"
# 证书名称 (替换域名的 . 为 _以符合阿里云证书名称规范)
CERT_NAME="${DOMAIN//./_}-$(date +%s)"
# 需要更新证书的 CDN 域名列表
DOMAIN_LIST=(
"example.example.com"