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

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 --standalone --email onexin@qq.com --agree-tos -d demo.onexin.com
或者
certbot certonly --apache

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

 

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

随机文章:

1、HTML在线编辑器的调用方法和使用方法
https://www.onexin.net/calls-to-methods-and-use-of-html-online-editor/

2、Gravatar头像打开速度很慢,解决办法
https://www.onexin.net/gravatar-picture-is-slow-to-open-the-solution/

3、ShopExV4.8二次开发技术文档[入门篇]
https://www.onexin.net/shopexv4-8-secondary-development-technical-documentation-introduction-to-chapter/

4、PHP实现多web服务器共享SESSION数据-session数据写入mysql数据库
https://www.onexin.net/php-web-server-to-share-multi-session-data-is-written-session-data-mysql-database/

5、Nginx Install
https://www.onexin.net/nginx-install/

Leave a Reply