Created
August 9, 2022 05:16
-
-
Save xiaoysh8/77d048676c41f0d86f1f438534a56f56 to your computer and use it in GitHub Desktop.
申请ssl证书
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
申请ssl证书 | |
//申请 | |
https://freessl.cn/ | |
//下载acme.sh | |
curl https://gitcode.net/cert/cn-acme.sh/-/raw/master/install.sh?inline=false | sh -s [email protected] | |
//部署 | |
acme.sh --issue -d *.huaguochang.net --dns dns_dp --server https://acme.freessl.cn/v2/DV90/directory/4yv6e35nvikr9wsv24j3 | |
//安装到 | |
nginx | |
acme.sh --install-cert -d *.huaguochang.net \ | |
--key-file /www/server/panel/vhost/cert/www.huaguochang.net/privkey.pem \ | |
--fullchain-file /www/server/panel/vhost/cert/www.huaguochang.net/fullchain.pem \ | |
--reloadcmd "/etc/init.d/nginx restart" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment