生成免费SSL证书

安装EPEL源

yum -y install epel-release.noarch

安装cerbot的rpm包

yum -y install certbot

开始生成证书

# 这个默认好像是apache证书
certbot certonly --manual -d notification.xyy.testxyy.cn

image-20210112111900893

配置apache

#证书公钥配置
SSLCertificateFile "/etc/letsencrypt/live/notification.xyy.testxyy.cn-0001/cert.pem"
#证书私钥配置
SSLCertificateKeyFile "/etc/letsencrypt/live/notification.xyy.testxyy.cn-0001/privkey.pem"
#证书链配置
SSLCertificateChainFile "/etc/letsencrypt/live/notification.xyy.testxyy.cn-0001/chain.pem"

证书自动续订命令

certbot renew
posted @ 2021-11-17 20:39  sunny7907  阅读(151)  评论(0)    收藏  举报