生成免费SSL证书
安装EPEL源
yum -y install epel-release.noarch
安装cerbot的rpm包
yum -y install certbot
开始生成证书
# 这个默认好像是apache证书
certbot certonly --manual -d notification.xyy.testxyy.cn

配置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

浙公网安备 33010602011771号