Skip to content

通过certbot安装免费的tls证书 #3

@huangxiaocheng93

Description

@huangxiaocheng93

certbot官网地址

Certbot

安装snapd

snapd是一个包管理工具(类似应用商店),certbot的工具是发布在这里。

安装epel源

如果已经安装过就不需要了

yum install epel-release

安装snapd

yum -y install snapd

snapd启用通信socket

systemctl enable --now snapd.socket

创建符号链接

ln -s /var/lib/snapd/snap /snap
snap install core
snap refresh core

安装certbot

snap install --classic certbot
ln -s /snap/bin/certbot /usr/bin/certbot

安装证书

certbot --nginx

or

certbot certonly --nginx
certbot install --cert-name ttk.npex.top

证书续期

certbot renew

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions