[root@dywnb ~]# head /etc/yum.repos.d/dywang.repo [dywang] name=De-Yu Wang mirrorlist=http://dywang.csie.cyut.edu.tw/centos6 enabled=1 gpgcheck=0
[root@dywang ~]# ln -s /etc/dywang-release /etc/redhat-release
[root@dywang ~]# ln -s /etc/dywang-release /etc/redhat-release
[root@dywang ~]# yum install -y tcl tk python27-libs python27 tix python27-setuptools tkinter27 \ python27-devel python27-virtualenv python27-tools python27-pip python-setuptools python-pip \ python-virtualenv perl-TermReadKey perl-Error perl-Git2u git2u libffi-devel libcom_err \ libtalloc libtevent libtdb keyutils-libs libsepol libselinux libsepol-devel libselinux-devel \ keyutils-libs-devel libcom_err-devel krb5-devel libsmbclient libselinux-utils libselinux-python \ openssl-devel libgcc libstdc++ cpp libgomp gcc libstdc++-devel dialog
[root@dywang ~]# git clone https://github.com/letsencrypt/letsencrypt
[root@dywang ~]# wget https://github.com/letsencrypt/letsencrypt/archive/master.zip
[root@ait letsencrypt]# diff -uN letsencrypt-master.orig/letsencrypt-auto letsencrypt-master/letsencrypt-auto --- letsencrypt-master.orig/letsencrypt-auto 2015-11-14 09:45:53.000000000 +0800 +++ letsencrypt-master/letsencrypt-auto 2015-11-17 10:56:16.527575393 +0800 @@ -83,10 +83,10 @@ } DeterminePythonVersion() { - if command -v python2 > /dev/null ; then - export LE_PYTHON=${LE_PYTHON:-python2} - elif command -v python2.7 > /dev/null ; then + if command -v python2.7 > /dev/null ; then export LE_PYTHON=${LE_PYTHON:-python2.7} + elif command -v python2 > /dev/null ; then + export LE_PYTHON=${LE_PYTHON:-python2} elif command -v python > /dev/null ; then export LE_PYTHON=${LE_PYTHON:-python} else
[root@dywang ~]# grep ^SSLCertificate /etc/httpd/conf.d/ssl.conf SSLCertificateFile /etc/letsencrypt/live/dywang.csie.cyut.edu.tw/cert.pem SSLCertificateKeyFile /etc/letsencrypt/live/dywang.csie.cyut.edu.tw/privkey.pem SSLCertificateChainFile /etc/letsencrypt/live/dywang.csie.cyut.edu.tw/chain.pem
[root@dywang ~]# /etc/init.d/httpd stop
[root@dywang ~]# cd letsencrypt [root@dywang letsencrypt]# ./letsencrypt-auto --agree-dev-preview \ --server https://acme-v01.api.letsencrypt.org/directory \ -d dywang.csie.cyut.edu.tw --email abc123@csie.cyut.edu.tw \ certonly Version: 1.1-20080819 Version: 1.1-20080819 IMPORTANT NOTES: - Congratulations! Your certificate and chain have been saved at /etc/letsencrypt/live/webmail.csie.cyut.edu.tw/fullchain.pem. Your cert will expire on 2016-02-23. To obtain a new version of the certificate in the future, simply run Let's Encrypt again.
[root@dywang ~]# ll /etc/letsencrypt/ accounts/ archive/ csr/ keys/ live/ renewal/ [root@dywang ~]# ll /etc/letsencrypt/live/dywang.csie.cyut.edu.tw/ total 0 lrwxrwxrwx. 1 root root 47 Nov 24 12:48 cert.pem -> ../../archive/dywang.csie.cyut.edu.tw/cert1.pem lrwxrwxrwx. 1 root root 48 Nov 24 12:48 chain.pem -> ../../archive/dywang.csie.cyut.edu.tw/chain1.pem lrwxrwxrwx. 1 root root 52 Nov 24 12:48 fullchain.pem -> ../../archive/dywang.csie.cyut.edu.tw/fullchain1.pem lrwxrwxrwx. 1 root root 50 Nov 24 12:48 privkey.pem -> ../../archive/dywang.csie.cyut.edu.tw/privkey1.pem
Error: unauthorized :: The client lacks sufficient authorization :: Error creating new authz :: Name is not whitelisted
[root@dywang ~]# /etc/init.d/httpd start