acme 获取免费https证书

安装acme.sh脚本

curl https://get.acme.sh | sh -s email=my@example.com

使用 http方式验证域名

acme.sh --issue -d www.example.com --server letsencrypt --cert-file /opt/ssl/cert.pem --key-file /opt/ssl/cert.key --webroot /usr/local/openresty/nginx/html
# --server letsencrypt 指定letsencrypt服务器
#  --webroot /usr/local/openresty/nginx/html 指定index.html目录

使用阿里云dnsapi验证域名

#注意用户权限
export Ali_Key="sdfsdfsdfljlbjkljlkjsdfoiwje"
export Ali_Secret="jlsdflanljkljlfdsaklkjflsa"


acme.sh --issue --dns dns_ali --server letsencrypt -d example.com -d www.example.com

posted @   li66  阅读(134)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 因为Apifox不支持离线,我果断选择了Apipost!
· 通过 API 将Deepseek响应流式内容输出到前端
点击右上角即可分享
微信分享提示