您的位置:首页 > 理论基础 > 计算机网络

使用 Cerbot 部署 Let's Encrypt免费证书 简单 升级 http 到 https 申请单域名ssl证书

2017-12-11 15:40 1081 查看
升级环境是centos 7  服务器apache 

服务器应具有的环境先运行

yum -y install yum-utils
yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional


完成这个之后,便可以通过运行来安装cerbot:

sudo yum install certbot-apache      适用于apache环境

使用cerbot 生成证书继续执行:

certbot certonly --webroot -w /var/www/example/ -d www.ws520.xin -d youdomain.com -w /var/www/other -d other.example.net -d another.other.example.net


-w 项目根目录  eg.(/phpstudy/www/youproject/);

-d 域名地址  eg.(www.ws520.xin)要进行申请证书的域名 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: