2021年最新方法更新Certbot免费https证书

certbot-auto基于Python 2.0/3.x代码,用以前的代码更新时会,有错误提示:

Skipping bootstrap because certbot-auto is deprecated on this system.

Your system is not supported by certbot-auto anymore.

Certbot cannot be installed.

Please visit https://certbot.eff.org/ to check for other alternatives.

Certbot免费https证书
Certbot 的官方网站是 https://certbot.eff.org/

以下操作环境:Centos 7.9 + Apache 2.4

获取certbot

# 安装snap

yum install snapd

# 将snap更新至最新版本
snap install core
snap refresh core

# 创建软链
ln -s /var/lib/snapd/snap /snap

# 安装certbot
snap install –classic certbot

# certbot命令软链
ln -s /snap/bin/certbot /usr/bin/certbot

# 生成证书
# certbot certonly –apache
或者
# certbot certonly –standalone –email onexin@qq.com –agree-tos -d demo.onexin.com

# 自动续期
# certbot renew –dry-run

转载请注明出处:https://www.onexin.net/2021-certbot-https/

随机文章:

1、CSS实现导航条图片的翻转菜单
https://www.onexin.net/css-navigation-bar-picture-flip-menu/

2、QQ登录功能申请完全开放
https://www.onexin.net/qq-login-function-to-apply-a-completely-open/

3、CentOS yum-3.2.22-26.el5.centos.noarch.rpm
https://www.onexin.net/centos-yum-3-2-22-26-el5-centos-noarch-rpm/

4、深入理解Magento – 第一章 – Magento强大的配置系统
https://www.onexin.net/depth-understanding-of-magento-the-first-chapter-magento-powerful-configuration-system/

5、网站建设必读:seo搜索引擎优化十大误区
https://www.onexin.net/website-must-read-search-engine-optimization-top-ten-mistakes/

Leave a Reply