0x01 声明变量

export CF_Key=”97383829sdjingjidsncjd”

export CF_Email=”admin@gov.com.im”

0x02 申请证书

acme.sh –issue –dns dns_cf -d linuxbiji.com -d *.linuxbiji.com

0x03 部署证书到nginx

acme.sh –install-cert -d linuxbji.com -d *.linuxbiji.com \

–key-file /usr/local/nginx/conf/ssl/linuxbiji.com.key \

–fullchain-file /usr/local/nginx/conf/ssl/linuxbiji.com.crt \

–reloadcmd “service nginx force-reload”

0x04 强制更新RSA证书

acme.sh –cron -f

0x05 全自动更新ECC证书

acme.sh –issue –dns dns_cf -d linuxbiji.com -d *.linuxbiji.com -k ec-256 \

–renew-hook “acme.sh –install-cert -d linuxbiji.com -d *.linuxbiji.com –ecc \

–key-file /usr/local/nginx/conf/ssl/linuxbiji.com_ecc.key \

–fullchain-file /usr/local/nginx/conf/ssl/linuxbiji.com_ecc.crt \

–reloadcmd \”service nginx force-reload\””

留下一个答复

请输入你的评论!
请在这里输入你的名字