标签归档:免费SSL

免费SSL letsencrypt正式公测 一个命令搞定

centos: yum install git

debian: apt-get install git

git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
./letsencrypt-auto certonly –server https://acme-v01.api.letsencrypt.org/directory –agree-dev-preview
运行完以上命令会弹出一个蓝色UI窗口,输入email,然后同意TOS,输入域名,之后出现“Congratulations! Your certificate and chain have been saved at
/etc/letsencrypt/live/xxx.com/fullchain.pem.”等提示就是成功了。接着去/etc/letsencrypt/live/xxx.com/文件夹下你会发现4个pem文件,其中fullchain.pem就是配置https站点需要使用的crt文件,privkey.pem就是key文件。