全球主机交流论坛

标题: letsencrypt公测了,谁发个完整版的教程? [打印本页]

作者: jeeve    时间: 2015-12-4 09:43
标题: letsencrypt公测了,谁发个完整版的教程?
RT
作者: mjever    时间: 2015-12-4 09:44
铜球
作者: wzlm123    时间: 2015-12-4 09:45
你去折腾, 然后写个,造福大家.
作者: jeeve    时间: 2015-12-5 21:10
wzlm123 发表于 2015-12-4 09:45
你去折腾, 然后写个,造福大家.

技术不到家,论坛的大神给指导下吧!
作者: eqblog    时间: 2015-12-5 21:12
同求教程
作者: chenvip5    时间: 2015-12-5 21:19
安装python 2.7 + (建议centos 7 默认就python2.75)
安装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界面,第一步输入 邮箱 回车确认,第二 统一协议之类的,第三输入域名 回车
不支持通配符,默认 带www

申请成功的话会在/etc/letsencrypt/live/根域名/ 目录下生成4个pem文件。fullchain1.pem就是配置https站点需要使用的crt文件,privkey1.pem就是key文件。
作者: 单手摘月    时间: 2015-12-5 21:47
提示: 作者被禁止或删除 内容自动屏蔽
作者: lolidc    时间: 2015-12-5 21:55
https://github.com/letsencrypt/letsencrypt Github的Readme 写的很清楚了啊
作者: jeeve    时间: 2015-12-5 22:24
lolidc 发表于 2015-12-5 21:55
https://github.com/letsencrypt/letsencrypt Github的Readme 写的很清楚了啊

Centos 6 按照教程不行啊
作者: 395183830    时间: 2015-12-6 01:05
本帖最后由 395183830 于 2015-12-6 01:12 编辑

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


作者: jeeve    时间: 2015-12-6 10:07
395183830 发表于 2015-12-6 01:05
yum install gcc zlib zlib-devel openssl openssl-devel
wget http://www.python.org/ftp/python/2.7.3/Py ...

./letsencrypt-auto: line 166: virtualenv: command not found

怎么解决?
作者: 395183830    时间: 2015-12-6 12:22
jeeve 发表于 2015-12-6 10:07
./letsencrypt-auto: line 166: virtualenv: command not found

怎么解决?

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

最后签证书
作者: jeeve    时间: 2015-12-6 15:19
395183830 发表于 2015-12-6 12:22
cd /root/Python-2.7.3
./configure
make && make install

Failed building wheel for cryptography
Command "/root/.local/share/letsencrypt/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip-build-EehjSr/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-GspyCj-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/.local/share/letsencrypt/include/site/python2.7/cryptography" failed with error code 1 in /tmp/pip-build-EehjSr/cryptography



作者: chenvip5    时间: 2015-12-6 17:28
jeeve 发表于 2015-12-5 22:24
Centos 6 按照教程不行啊

centos 6会提示python版本过低,建议升级到2.7+
10楼有升级教程
作者: 395183830    时间: 2015-12-6 20:40
jeeve 发表于 2015-12-6 15:19
Failed building wheel for cryptography
Command "/root/.local/share/letsencrypt/bin/python2.7 -c "i ...

后面不会了。。问度娘怎么解决吧




欢迎光临 全球主机交流论坛 (https://sunk.eu.org/) Powered by Discuz! X3.4