BuringStraw

BuringStraw

用acme.sh给ssl证书续期

关于acme.sh的详细说明可以看 [这里][1]
因为我的 nginx 的配置文件非常凌乱,所以我采用的是关掉 nginx,让 acme.sh 自己作为服务器的方式来验证

首先需要安装 socat
apt install socat

然后
acme.sh --issue -d zhufn.fun --standalone

生成好的证书会自动放到 nginx 的文件夹里,好神奇
![ ][2]
后来发现一个证书可以对应多个域名
于是
acme.sh --issue -d zhufn.fun -d rss.zhufn.fun -d tb.zhufn.fun -d i.zhufn.fun --standalone

然后改改 nginx 里的路径,就可以共用一个证书啦
[1]: https://github.com/acmesh-official/acme.sh/wiki/%E8%AF%B4%E6%98%8E
[2]: https://s2.ax1x.com/2020/02/03/1aCQkF.png

加载中...
此文章数据所有权由区块链加密技术和智能合约保障仅归创作者所有。