安装acme.sh ssl证书脚本

  sre

5fd79afb5a5a28189.jpg_fo742.jpg

#安装acme依赖
yum update && yum install curl -y && yum install cron -y && yum install socat -y
#配置hosts
echo "199.232.28.133 raw.githubusercontent.com" >>/etc/hosts
curl https://get.acme.sh | sh
#设置阿里API
export Ali_Key="1111111111111111111111111111111"
export Ali_Secret="222222222222222222222222222222"
#一键申请ssl证书
~/.acme.sh/acme.sh --issue --dns dns_ali -d test.com -d *.test.com
#证书默认路径
/root/.acme.sh/test.com/test.com.cer
/root/.acme.sh/test.com/fullchain.cer

LEAVE A COMMENT

Captcha Code