申请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、使用ie7.js来解决ie6兼容问题
https://www.onexin.net/use-ie7-js-to-solve-the-problem-of-ie6-compatible/

2、PHP设计模式(十一)—享元模式 (Flyweight Pattern)
https://www.onexin.net/php-flyweight-pattern/

3、PHP Iterator(迭代器)接口
https://www.onexin.net/php-iterator/

4、jQuery图表插件Highcharts API参数,方法和属性
https://www.onexin.net/jquery-chart-plug-in-highcharts-api-parameters-methods-and-properties/

5、深入理解Magento – 第四章 – Model模型和ORM对象关系映射基础
https://www.onexin.net/depth-understanding-of-magento-chapter-iv-model-based-model-and-orm/

Leave a Reply