centos下使用acme来自动获取免费通配符ssl证书,并发布到nginx服务,(DNS服务为阿里云)

参考链接:

官方文档
acme.sh获取证书

bash 复制代码
# 下载acme的项目
git clone https://gitee.com/neilpang/acme.sh.git
# 执行安装脚本
cd acme.sh
./acme.sh --install -m my@example.com
# 安装脚本会新增一个定时任务,这个命令可以检查
crontab -l
# 从阿里云获取ks,写入
export Ali_Key="LTAI*****"
export Ali_Secret="Y1b7LM2*****"
echo $Ali_Key
# 注册自动dns验证
./acme.sh --issue --dns dns_ali -d gly.asia -d *.gly.asia
./acme.sh --info -d gly.asia
# 复制到指定的nginx位置
acme.sh --install-cert -d etronprobe.com \
--key-file       /etc/nginx/conf.d/ssl/etronprobe.com.key  \
--fullchain-file /etc/nginx/conf.d/ssl/etronprobe.com.pem \
--reloadcmd     "systemctl restart nginx.service"
相关推荐
还是大剑师兰特3 天前
解决nginx错误:http://localhost:7000正常,http://localhost:7000/map 报错404
nginx·大剑师
xing-xing3 天前
Docker容器中Nginx站点根目录网页配置访问
nginx·docker
PC2005-cloud4 天前
Nginx 防盗链配置实战:用 referer 模块保护网站静态资源
nginx
PHP实战开发录4 天前
Nginx上传大文件为什么报413
nginx·php·开发
Lsetea4 天前
Nginx报No required SSL certificate was sent:mTLS客户端证书排查
运维·nginx·https·ssl·openssl
szephyr5 天前
HTTPS 证书申请与自动续期:acme.sh + Let‘s Encrypt 完整记录
nginx·https·acme.sh·证书续期
Lsetea6 天前
部署证书后提示“证书名称与输入不匹配”:Safari 报错的三层排查
nginx·https·safari·ssl证书·openssl
daemon.qiang6 天前
国内虚拟机对接 Freedesktop:Fork xserver、自建 Runner 与提交 MR 实战
linux·ubuntu·centos·gitlab·开源软件
打工仔折腾 AI6 天前
FastAPI 从本机到生产服务器:Nginx+Gunicorn+Uvicorn 完整部署实录
人工智能·后端·python·nginx·fastapi·gunicorn
Linux运维技术栈6 天前
如何避免绕过CDN的攻击?基于 CDN 回源请求头鉴权的防御实操与安全性剖析
nginx·安全·cdn