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

随机文章:

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

2、UCenter Home常用sql语句入门篇(一)
https://www.onexin.net/used-sql-statement-ucenter-home-getting-started-chapter/

3、RewriteRule 301设置后搜索引擎保留的哪个网址
https://www.onexin.net/301-redirect/

4、网站显示谷歌纵横widget
https://www.onexin.net/latitude-widget-site-to-show-google/

5、CentOS 7.8 系统yum环境搭建PHP 7.4.x + Apache 2.4 + MariaDB 10.x
https://www.onexin.net/centos-7-x-php-7-x-apache-2-4-mariadb-10-x/

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

Leave a Reply

Your email address will not be published. Required fields are marked *