letsencrypt签发证书

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惯例不能发地址。

  1. apt-get install git
  2. git clone https://github.com/letsencrypt/letsencrypt
  3. cd letsencrypt
  4. ./letsencrypt-auto certonly –server https://acme-v01.api.letsencrypt.org/directory –agree-dev-preview

yum install gcc zlib zlib-devel openssl openssl-devel
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
tar zxvf Python-2.7.3.tgz
cd Python-2.7.3
./configure
make && make install

/usr/bin/yum文件中的第一行#!/usr/bin/python修改为#!/usr/bin/python2.6

yum -y 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

cd /root/Python-2.7.3
./configure
make && make install
重新编译

cd /root
wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
python get-pip.py
安装pip

pip install virtualenv
安装virtualenv

最后签证书

Be the first to comment

Leave a Reply

Your email address will not be published.


*