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文件。今天捣鼓了一下成功了,我记在博客里了,不过不敢发出来,毕竟loc惯例不能发地址。
yum install gcc zlib zlib-devel openssl openssl-devel /usr/bin/yum文件中的第一行#!/usr/bin/python修改为#!/usr/bin/python2.6 yum -y install git cd /root/Python-2.7.3 cd /root pip install virtualenv 最后签证书 |
Leave a Reply