本地环境获取https证书 2025-11-12 作者 Y Y 494 字 本文最后编辑于 前,其中的内容可能需要更新。 本地环境获取https证书 下载acme.sh 1git clone https://gitee.com/neilpang/acme.sh.git 获取cloudflare token 创建证书 12345cd acme.shmacos环境./acme.sh --issue --dns dns_cf -d a.example.coma.example.com替换为自己的域名 安装证书 123456789创建证书存放地址,需要有地址权限,不能使用sudomkdir -p ~/ssl/a.example.com安装证书acme.sh --install-cert -d a.example.com \ --key-file ~/ssl/a.example.com/privkey.pem \ --fullchain-file ~/ssl/a.example.com/fullchain.pem \ --reloadcmd "brew services restart nginx" 生成的证书在~/.acme.sh/a.example.com < 上一篇 下一篇 >