侧边栏壁纸
博主头像
TLYAN

只要芝麻,不要西瓜.............纯大神之作
古人有雲:吃得苦中苦方為人上人

  • 累计撰写 134 篇文章
  • 累计收到 5 条评论
linux续签通配符SSL
10个月前 865阅读 0评论 0点赞


linux续签通配符SSL


                 在Linux环境下,如果你需要续签通配符SSL证书,可以使用Let's Encrypt的certbot工具。以下是一个基本的命令序







列,用于续签一个通配符SSL证书:











安装Certbot:

sudo apt-get update

sudo apt-get install software-properties-common

sudo add-apt-repository universe

sudo add-apt-repository ppa:certbot/certbot

sudo apt-get update

sudo apt-get install certbot python3-certbot-nginx


centos:

   sudo yum update
sudo yum  install software-properties-common
sudo yum -repository universe
sudo yum -repository ppa:certbot/certbot
sudo yum  update
sudo yum  install certbot python3-certbot-nginx



  1. 续签证书:

sudo certbot renew --dry-run

  1. 配置自动续签(可选):

sudo certbot renew --text


确保你的服务器上已经安装了Nginx或其他服务器软件,并且已经正确配置了相应的虚拟主机。





如果你的证书已经过期,而且你没有自动续签设置,你可以手动续签:

sudo certbot certonly --manual -d '*.yourdomain.com' --agree-tos --email your-email@example.com --server https://acme-v02.api.letsencrypt.org/directory


替换yourdomain.com为你的域名,your-email@example.com为你的联系邮箱





如果你需要更具体的操作步骤,例如处理Certbot与Nginx的集成,请提供更多的背景信息。


版权所有:《小唐博客-唐三岁-我可以告诉你-唐联艳》 => 《linux续签通配符SSL
本文地址:https://www.tlyan.com/post-121.html
除非注明,文章均为 《小唐博客-唐三岁-我可以告诉你-唐联艳》 原创,欢迎转载!转载请注明本文地址,谢谢。

收藏

扫描二维码,在手机上阅读
分享本文至:

评论

取消
申请友链
+ 申请友链