ssl acme.sh自动续期

ssl acme.sh自动续期

月光魔力鸭

2024-01-11 16:47 阅读 796 喜欢 0

acme.sh

undefined

安装

wget -O -  https://get.acme.sh | sh
source /root/.bashrc

自动创建了一条定时任务

注册账号

acme.sh --register-account -m my@example.com

生成证书

acme.sh --issue -d mydomain.com --nginx /usr/local/nginx/conf/nginx.conf
# 这个没成功,换目录
acme.sh --issue -d mydomain.com -d www.mydomain.com --webroot /home/wwwroot/mydomain.com/

acme.sh --issue -d mydomain.com -d www.mydomain.com --webroot /home/wwwroot/mydomain.com/ --server letsencrypt

如果访问不到,需要检查nginx的配置,或者是否关闭了80 ? 或者路径是否匹配等。

安装证书

acme.sh --install-cert -d example.com \
--key-file       /path/to/keyfile/in/nginx/key.pem  \
--fullchain-file /path/to/fullchain/nginx/cert.pem \
--reloadcmd     "service nginx force-reload"

查看证书

acme.sh --info -d www.example.com

如果需要修改reloadcmd

重新安装一遍即可

带有端口的证书申请

由于家里还有一台服务器,但是带着端口,只能通过DNS来申请了。 undefined

acme.sh --issue --dns -d xxx.com --yes-I-know-dns-manual-mode-enough-go-ahead-please

然后在域名解析的地方,增加txt记录。

acme.sh --renew  -d xxxx.com --yes-I-know-dns-manual-mode-enough-go-ahead-please

下载证书后按照上面的说明进行安装即可。

到期后如果没有自动续期,手动执行

acme.sh --renew -d domain.com --force

转载请注明出处: https://chrunlee.cn/article/ssl-acme-sh-redate.html


感谢支持!

赞赏支持
提交评论
评论信息 (请文明评论)
暂无评论,快来快来写想法...
推荐
web网站上总会有在文本域中提交代码的操作,那么如何处理呢?
在项目开发过程中,分页是少不了的,之前封装了一个分页组件,样式是基于bootstrap的样式,当然也可以自己来修改
this 是 JavaScript 的一大难点,多年经验的前端程序员都可能对这方面模糊。this 在大量的函数、类库中都有使用,理清显式绑定和隐式绑定有助于理解或书写这类函数。
nvm install 16.15.0 : The process cannot access the file because it is being used by another process
通过jspdf ,我们可以将页面或图片生成pdf下载下来,如果是一些复杂的页面,我们可以将页面转成图片,然后把图片加入到pdf中,生成并下载。
关于jquery,他的核心特点就是无new构造和链式调用,这里根据网上的资料,自己简单理解下,有助于消化核心代码。
先记录下,不定哪天就查了..防止找不到或不全
在通过chrome浏览器来调用摄像头的时候发现getUserMedia报错,但是本地开发却没有问题,主要原因是https环境的问题。chrome 不允许在非https和非localhost下的非安全环境进行调用。