How to Install Let’s Encrypt on CentOS 6/7 with Nginx webserver

[[email protected] ~]# yum -y install git python-tools python-pip
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* epel: repos.del.extreme-ix.org
* extras: centos.excellmedia.net
* remi: mirror.xeonbd.com
* remi-php56: mirror.xeonbd.com
* remi-safe: mirror.xeonbd.com
* rpmforge: kartolo.sby.datautama.net.id
* updates: centos.excellmedia.net
Resolving Dependencies
–> Running transaction check
—> Package git.x86_64 0:1.7.1-4.el6_7.1 will be updated
–> Processing Dependency: git = 1.7.1-4.el6_7.1 for package: perl-Git-1.7.1-4.el6_7.1.noarch
—> Package git.x86_64 0:1.7.1-9.el6_9 will be an update
—> Package python-pip.noarch 0:7.1.0-1.el6 will be installed
–> Processing Dependency: python-setuptools for package: python-pip-7.1.0-1.el6.noarch
—> Package python-tools.x86_64 0:2.6.6-66.el6_8 will be installed
–> Processing Dependency: tkinter = 2.6.6-66.el6_8 for package: python-tools-2.6.6-66.el6_8.x86_64
–> Processing Dependency: python = 2.6.6-66.el6_8 for package: python-tools-2.6.6-66.el6_8.x86_64
–> Running transaction check
—> Package perl-Git.noarch 0:1.7.1-4.el6_7.1 will be updated
—> Package perl-Git.noarch 0:1.7.1-9.el6_9 will be an update
—> Package python.x86_64 0:2.6.6-64.el6 will be updated
—> Package python.x86_64 0:2.6.6-66.el6_8 will be an update
–> Processing Dependency: python-libs(x86-64) = 2.6.6-66.el6_8 for package: python-2.6.6-66.el6_8.x86_64
—> Package python-setuptools.noarch 0:0.6.10-4.el6_9 will be installed
—> Package tkinter.x86_64 0:2.6.6-66.el6_8 will be installed
–> Processing Dependency: libtk8.5.so()(64bit) for package: tkinter-2.6.6-66.el6_8.x86_64
–> Processing Dependency: libtcl8.5.so()(64bit) for package: tkinter-2.6.6-66.el6_8.x86_64
–> Processing Dependency: libTix.so()(64bit) for package: tkinter-2.6.6-66.el6_8.x86_64
–> Running transaction check
—> Package python-libs.x86_64 0:2.6.6-64.el6 will be updated
—> Package python-libs.x86_64 0:2.6.6-66.el6_8 will be an update
—> Package tcl.x86_64 1:8.5.7-6.el6 will be installed
—> Package tix.x86_64 1:8.4.3-5.el6 will be installed
—> Package tk.x86_64 1:8.5.7-5.el6 will be installed
–> Processing Dependency: libXrender.so.1()(64bit) for package: 1:tk-8.5.7-5.el6.x86_64
–> Processing Dependency: libXft.so.2()(64bit) for package: 1:tk-8.5.7-5.el6.x86_64
–> Running transaction check
—> Package libXft.x86_64 0:2.3.2-1.el6 will be installed
—> Package libXrender.x86_64 0:0.9.10-1.el6 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================================================================
Installing:
python-pip noarch 7.1.0-1.el6 epel 1.5 M
python-tools x86_64 2.6.6-66.el6_8 base 871 k
Updating:
git x86_64 1.7.1-9.el6_9 base 4.6 M
Installing for dependencies:
libXft x86_64 2.3.2-1.el6 base 55 k
libXrender x86_64 0.9.10-1.el6 base 24 k
python-setuptools noarch 0.6.10-4.el6_9 base 336 k
tcl x86_64 1:8.5.7-6.el6 base 1.9 M
tix x86_64 1:8.4.3-5.el6 base 252 k
tk x86_64 1:8.5.7-5.el6 base 1.4 M
tkinter x86_64 2.6.6-66.el6_8 base 258 k
Updating for dependencies:
perl-Git noarch 1.7.1-9.el6_9 base 29 k
python x86_64 2.6.6-66.el6_8 base 76 k
python-libs x86_64 2.6.6-66.el6_8 base 5.3 M

Transaction Summary
============================================================================================================================================================================================================
Install 9 Package(s)
Upgrade 4 Package(s)

Total download size: 17 M
Downloading Packages:
(1/13): git-1.7.1-9.el6_9.x86_64.rpm | 4.6 MB 00:00
(2/13): libXft-2.3.2-1.el6.x86_64.rpm | 55 kB 00:00
(3/13): libXrender-0.9.10-1.el6.x86_64.rpm | 24 kB 00:00
(4/13): perl-Git-1.7.1-9.el6_9.noarch.rpm | 29 kB 00:00
(5/13): python-2.6.6-66.el6_8.x86_64.rpm | 76 kB 00:00
(6/13): python-libs-2.6.6-66.el6_8.x86_64.rpm | 5.3 MB 00:01
(7/13): python-pip-7.1.0-1.el6.noarch.rpm | 1.5 MB 00:00
(8/13): python-setuptools-0.6.10-4.el6_9.noarch.rpm | 336 kB 00:00
(9/13): python-tools-2.6.6-66.el6_8.x86_64.rpm | 871 kB 00:00
(10/13): tcl-8.5.7-6.el6.x86_64.rpm | 1.9 MB 00:00
(11/13): tix-8.4.3-5.el6.x86_64.rpm | 252 kB 00:00
(12/13): tk-8.5.7-5.el6.x86_64.rpm | 1.4 MB 00:00
(13/13): tkinter-2.6.6-66.el6_8.x86_64.rpm | 258 kB 00:00
————————————————————————————————————————————————————————————————————
Total 4.0 MB/s | 17 MB 00:04
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 1:tcl-8.5.7-6.el6.x86_64 1/17
Installing : libXrender-0.9.10-1.el6.x86_64 2/17
Installing : libXft-2.3.2-1.el6.x86_64 3/17
Installing : 1:tk-8.5.7-5.el6.x86_64 4/17
Installing : 1:tix-8.4.3-5.el6.x86_64 5/17
Updating : git-1.7.1-9.el6_9.x86_64 6/17
Updating : perl-Git-1.7.1-9.el6_9.noarch 7/17
Updating : python-2.6.6-66.el6_8.x86_64 8/17
Updating : python-libs-2.6.6-66.el6_8.x86_64 9/17
Installing : python-setuptools-0.6.10-4.el6_9.noarch 10/17
Installing : tkinter-2.6.6-66.el6_8.x86_64 11/17
Installing : python-tools-2.6.6-66.el6_8.x86_64 12/17
Installing : python-pip-7.1.0-1.el6.noarch 13/17
Cleanup : git-1.7.1-4.el6_7.1.x86_64 14/17
Cleanup : perl-Git-1.7.1-4.el6_7.1.noarch 15/17
Cleanup : python-2.6.6-64.el6.x86_64 16/17
Cleanup : python-libs-2.6.6-64.el6.x86_64 17/17
Verifying : python-pip-7.1.0-1.el6.noarch 1/17
Verifying : python-libs-2.6.6-66.el6_8.x86_64 2/17
Verifying : 1:tix-8.4.3-5.el6.x86_64 3/17
Verifying : perl-Git-1.7.1-9.el6_9.noarch 4/17
Verifying : libXft-2.3.2-1.el6.x86_64 5/17
Verifying : libXrender-0.9.10-1.el6.x86_64 6/17
Verifying : python-setuptools-0.6.10-4.el6_9.noarch 7/17
Verifying : python-2.6.6-66.el6_8.x86_64 8/17
Verifying : tkinter-2.6.6-66.el6_8.x86_64 9/17
Verifying : 1:tcl-8.5.7-6.el6.x86_64 10/17
Verifying : 1:tk-8.5.7-5.el6.x86_64 11/17
Verifying : git-1.7.1-9.el6_9.x86_64 12/17
Verifying : python-tools-2.6.6-66.el6_8.x86_64 13/17
Verifying : git-1.7.1-4.el6_7.1.x86_64 14/17
Verifying : python-libs-2.6.6-64.el6.x86_64 15/17
Verifying : python-2.6.6-64.el6.x86_64 16/17
Verifying : perl-Git-1.7.1-4.el6_7.1.noarch 17/17

Installed:
python-pip.noarch 0:7.1.0-1.el6 python-tools.x86_64 0:2.6.6-66.el6_8

Dependency Installed:
libXft.x86_64 0:2.3.2-1.el6 libXrender.x86_64 0:0.9.10-1.el6 python-setuptools.noarch 0:0.6.10-4.el6_9 tcl.x86_64 1:8.5.7-6.el6 tix.x86_64 1:8.4.3-5.el6 tk.x86_64 1:8.5.7-5.el6
tkinter.x86_64 0:2.6.6-66.el6_8

Updated:
git.x86_64 0:1.7.1-9.el6_9

Dependency Updated:
perl-Git.noarch 0:1.7.1-9.el6_9 python.x86_64 0:2.6.6-66.el6_8 python-libs.x86_64 0:2.6.6-66.el6_8

Complete!

[[email protected] ~]# git clone https://github.com/letsencrypt/letsencrypt
Initialized empty Git repository in /root/letsencrypt/.git/
remote: Enumerating objects: 20, done.
remote: Counting objects: 100% (20/20), done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 61424 (delta 6), reused 2 (delta 2), pack-reused 61404
Receiving objects: 100% (61424/61424), 20.10 MiB | 382 KiB/s, done.
Resolving deltas: 100% (44629/44629), done.

[[email protected] ~]# cd letsencrypt/
[[email protected] letsencrypt]# ./letsencrypt-auto certonly -a standalone -d the-d2.com www.the-d2.com
Bootstrapping dependencies for RedHat-based OSes that will use Python3… (you can skip this with –no-bootstrap)
yum is /usr/bin/yum
yum is hashed (/usr/bin/yum)
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* epel: repos.del.extreme-ix.org
* extras: centos.excellmedia.net
* remi: mirror.xeonbd.com
* remi-php56: mirror.xeonbd.com
* remi-safe: mirror.xeonbd.com
* rpmforge: kartolo.sby.datautama.net.id
* updates: centos.excellmedia.net
Resolving Dependencies
–> Running transaction check
—> Package augeas-libs.x86_64 0:1.0.0-10.el6 will be installed
—> Package ca-certificates.noarch 0:2015.2.6-65.0.1.el6_7 will be updated
—> Package ca-certificates.noarch 0:2018.2.22-65.1.el6 will be an update
—> Package gcc.x86_64 0:4.4.7-17.el6 will be updated
—> Package gcc.x86_64 0:4.4.7-23.el6 will be an update
–> Processing Dependency: libgomp = 4.4.7-23.el6 for package: gcc-4.4.7-23.el6.x86_64
–> Processing Dependency: cpp = 4.4.7-23.el6 for package: gcc-4.4.7-23.el6.x86_64
–> Processing Dependency: libgcc >= 4.4.7-23.el6 for package: gcc-4.4.7-23.el6.x86_64
—> Package libffi-devel.x86_64 0:3.0.5-3.2.el6 will be installed
—> Package mod_ssl.x86_64 2:2.2.15-47.el6.vm.4 will be updated
—> Package mod_ssl.x86_64 2:2.2.15-60.el6.6vm will be an update
–> Processing Dependency: httpd = 1:2.2.15-60.el6.6vm for package: 2:mod_ssl-2.2.15-60.el6.6vm.x86_64
—> Package openssl.x86_64 0:1.0.1e-48.el6_8.4 will be updated
—> Package openssl.x86_64 0:1.0.1e-57.el6 will be an update
—> Package openssl-devel.x86_64 0:1.0.1e-48.el6_8.4 will be updated
—> Package openssl-devel.x86_64 0:1.0.1e-57.el6 will be an update
—> Package python34.x86_64 0:3.4.8-1.el6 will be installed
–> Processing Dependency: python34-libs(x86-64) = 3.4.8-1.el6 for package: python34-3.4.8-1.el6.x86_64
–> Processing Dependency: libpython3.4m.so.1.0()(64bit) for package: python34-3.4.8-1.el6.x86_64
—> Package python34-devel.x86_64 0:3.4.8-1.el6 will be installed
–> Processing Dependency: python3-rpm-macros for package: python34-devel-3.4.8-1.el6.x86_64
–> Processing Dependency: python-rpm-macros for package: python34-devel-3.4.8-1.el6.x86_64
—> Package python34-tools.x86_64 0:3.4.8-1.el6 will be installed
–> Processing Dependency: python34-tkinter = 3.4.8-1.el6 for package: python34-tools-3.4.8-1.el6.x86_64
—> Package redhat-rpm-config.noarch 0:9.0.3-51.el6.centos will be installed
–> Running transaction check
—> Package cpp.x86_64 0:4.4.7-17.el6 will be updated
—> Package cpp.x86_64 0:4.4.7-23.el6 will be an update
—> Package httpd.x86_64 1:2.2.15-47.el6.vm.4 will be updated
—> Package httpd.x86_64 1:2.2.15-60.el6.6vm will be an update
–> Processing Dependency: httpd-tools = 1:2.2.15-60.el6.6vm for package: 1:httpd-2.2.15-60.el6.6vm.x86_64
—> Package libgcc.x86_64 0:4.4.7-17.el6 will be updated
—> Package libgcc.x86_64 0:4.4.7-23.el6 will be an update
—> Package libgomp.x86_64 0:4.4.7-17.el6 will be updated
—> Package libgomp.x86_64 0:4.4.7-23.el6 will be an update
—> Package python-rpm-macros.noarch 0:3-13.el6 will be installed
–> Processing Dependency: python-srpm-macros for package: python-rpm-macros-3-13.el6.noarch
—> Package python3-rpm-macros.noarch 0:3-13.el6 will be installed
—> Package python34-libs.x86_64 0:3.4.8-1.el6 will be installed
—> Package python34-tkinter.x86_64 0:3.4.8-1.el6 will be installed
–> Running transaction check
—> Package httpd-tools.x86_64 1:2.2.15-47.el6.vm.4 will be updated
—> Package httpd-tools.x86_64 1:2.2.15-60.el6.6vm will be an update
—> Package python-srpm-macros.noarch 0:3-13.el6 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================================================================
Installing:
augeas-libs x86_64 1.0.0-10.el6 base 314 k
libffi-devel x86_64 3.0.5-3.2.el6 base 18 k
python34 x86_64 3.4.8-1.el6 epel 50 k
python34-devel x86_64 3.4.8-1.el6 epel 186 k
python34-tools x86_64 3.4.8-1.el6 epel 426 k
redhat-rpm-config noarch 9.0.3-51.el6.centos base 60 k
Updating:
ca-certificates noarch 2018.2.22-65.1.el6 base 930 k
gcc x86_64 4.4.7-23.el6 base 10 M
mod_ssl x86_64 2:2.2.15-60.el6.6vm virtualmin 98 k
openssl x86_64 1.0.1e-57.el6 base 1.5 M
openssl-devel x86_64 1.0.1e-57.el6 base 1.2 M
Installing for dependencies:
python-rpm-macros noarch 3-13.el6 epel 5.6 k
python-srpm-macros noarch 3-13.el6 epel 5.6 k
python3-rpm-macros noarch 3-13.el6 epel 5.1 k
python34-libs x86_64 3.4.8-1.el6 epel 8.4 M
python34-tkinter x86_64 3.4.8-1.el6 epel 336 k
Updating for dependencies:
cpp x86_64 4.4.7-23.el6 base 3.7 M
httpd x86_64 1:2.2.15-60.el6.6vm virtualmin 835 k
httpd-tools x86_64 1:2.2.15-60.el6.6vm virtualmin 79 k
libgcc x86_64 4.4.7-23.el6 base 104 k
libgomp x86_64 4.4.7-23.el6 base 135 k

Transaction Summary
============================================================================================================================================================================================================
Install 11 Package(s)
Upgrade 10 Package(s)

Total download size: 28 M
Downloading Packages:
(1/21): augeas-libs-1.0.0-10.el6.x86_64.rpm | 314 kB 00:00
(2/21): ca-certificates-2018.2.22-65.1.el6.noarch.rpm | 930 kB 00:00
(3/21): cpp-4.4.7-23.el6.x86_64.rpm | 3.7 MB 00:00
(4/21): gcc-4.4.7-23.el6.x86_64.rpm | 10 MB 00:02
(5/21): httpd-2.2.15-60.el6.6vm.x86_64.rpm | 835 kB 00:00
(6/21): httpd-tools-2.2.15-60.el6.6vm.x86_64.rpm | 79 kB 00:00
(7/21): libffi-devel-3.0.5-3.2.el6.x86_64.rpm | 18 kB 00:00
(8/21): libgcc-4.4.7-23.el6.x86_64.rpm | 104 kB 00:00
(9/21): libgomp-4.4.7-23.el6.x86_64.rpm | 135 kB 00:00
(10/21): mod_ssl-2.2.15-60.el6.6vm.x86_64.rpm | 98 kB 00:00
(11/21): openssl-1.0.1e-57.el6.x86_64.rpm | 1.5 MB 00:00
(12/21): openssl-devel-1.0.1e-57.el6.x86_64.rpm | 1.2 MB 00:00
(13/21): python-rpm-macros-3-13.el6.noarch.rpm | 5.6 kB 00:00
(14/21): python-srpm-macros-3-13.el6.noarch.rpm | 5.6 kB 00:00
(15/21): python3-rpm-macros-3-13.el6.noarch.rpm | 5.1 kB 00:00
(16/21): python34-3.4.8-1.el6.x86_64.rpm | 50 kB 00:00
(17/21): python34-devel-3.4.8-1.el6.x86_64.rpm | 186 kB 00:00
(18/21): python34-libs-3.4.8-1.el6.x86_64.rpm | 8.4 MB 00:00
(19/21): python34-tkinter-3.4.8-1.el6.x86_64.rpm | 336 kB 00:00
(20/21): python34-tools-3.4.8-1.el6.x86_64.rpm | 426 kB 00:00
(21/21): redhat-rpm-config-9.0.3-51.el6.centos.noarch.rpm | 60 kB 00:00
————————————————————————————————————————————————————————————————————
Total 3.6 MB/s | 28 MB 00:07
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : python-srpm-macros-3-13.el6.noarch 1/31
Installing : python-rpm-macros-3-13.el6.noarch 2/31
Updating : libgcc-4.4.7-23.el6.x86_64 3/31
Updating : cpp-4.4.7-23.el6.x86_64 4/31
Updating : ca-certificates-2018.2.22-65.1.el6.noarch 5/31
Updating : openssl-1.0.1e-57.el6.x86_64 6/31
Installing : python34-3.4.8-1.el6.x86_64 7/31
Installing : python34-libs-3.4.8-1.el6.x86_64 8/31
Installing : python34-tkinter-3.4.8-1.el6.x86_64 9/31
Updating : 1:httpd-tools-2.2.15-60.el6.6vm.x86_64 10/31
Updating : 1:httpd-2.2.15-60.el6.6vm.x86_64 11/31
Updating : libgomp-4.4.7-23.el6.x86_64 12/31
Installing : python3-rpm-macros-3-13.el6.noarch 13/31
Installing : python34-devel-3.4.8-1.el6.x86_64 14/31
Updating : gcc-4.4.7-23.el6.x86_64 15/31
Updating : 2:mod_ssl-2.2.15-60.el6.6vm.x86_64 16/31
Installing : python34-tools-3.4.8-1.el6.x86_64 17/31
Updating : openssl-devel-1.0.1e-57.el6.x86_64 18/31
Installing : augeas-libs-1.0.0-10.el6.x86_64 19/31
Installing : redhat-rpm-config-9.0.3-51.el6.centos.noarch 20/31
Installing : libffi-devel-3.0.5-3.2.el6.x86_64 21/31
Cleanup : gcc-4.4.7-17.el6.x86_64 22/31
Cleanup : 2:mod_ssl-2.2.15-47.el6.vm.4.x86_64 23/31
Cleanup : openssl-devel-1.0.1e-48.el6_8.4.x86_64 24/31
Cleanup : 1:httpd-2.2.15-47.el6.vm.4.x86_64 25/31
Cleanup : 1:httpd-tools-2.2.15-47.el6.vm.4.x86_64 26/31
Cleanup : openssl-1.0.1e-48.el6_8.4.x86_64 27/31
Cleanup : ca-certificates-2015.2.6-65.0.1.el6_7.noarch 28/31
Cleanup : cpp-4.4.7-17.el6.x86_64 29/31
Cleanup : libgcc-4.4.7-17.el6.x86_64 30/31
Cleanup : libgomp-4.4.7-17.el6.x86_64 31/31
Verifying : gcc-4.4.7-23.el6.x86_64 1/31
Verifying : python34-tkinter-3.4.8-1.el6.x86_64 2/31
Verifying : python34-libs-3.4.8-1.el6.x86_64 3/31
Verifying : libffi-devel-3.0.5-3.2.el6.x86_64 4/31
Verifying : python3-rpm-macros-3-13.el6.noarch 5/31
Verifying : python34-tools-3.4.8-1.el6.x86_64 6/31
Verifying : 1:httpd-tools-2.2.15-60.el6.6vm.x86_64 7/31
Verifying : 2:mod_ssl-2.2.15-60.el6.6vm.x86_64 8/31
Verifying : redhat-rpm-config-9.0.3-51.el6.centos.noarch 9/31
Verifying : libgomp-4.4.7-23.el6.x86_64 10/31
Verifying : openssl-devel-1.0.1e-57.el6.x86_64 11/31
Verifying : python34-3.4.8-1.el6.x86_64 12/31
Verifying : ca-certificates-2018.2.22-65.1.el6.noarch 13/31
Verifying : augeas-libs-1.0.0-10.el6.x86_64 14/31
Verifying : python34-devel-3.4.8-1.el6.x86_64 15/31
Verifying : python-rpm-macros-3-13.el6.noarch 16/31
Verifying : openssl-1.0.1e-57.el6.x86_64 17/31
Verifying : 1:httpd-2.2.15-60.el6.6vm.x86_64 18/31
Verifying : cpp-4.4.7-23.el6.x86_64 19/31
Verifying : libgcc-4.4.7-23.el6.x86_64 20/31
Verifying : python-srpm-macros-3-13.el6.noarch 21/31
Verifying : 2:mod_ssl-2.2.15-47.el6.vm.4.x86_64 22/31
Verifying : cpp-4.4.7-17.el6.x86_64 23/31
Verifying : 1:httpd-tools-2.2.15-47.el6.vm.4.x86_64 24/31
Verifying : libgcc-4.4.7-17.el6.x86_64 25/31
Verifying : openssl-1.0.1e-48.el6_8.4.x86_64 26/31
Verifying : 1:httpd-2.2.15-47.el6.vm.4.x86_64 27/31
Verifying : openssl-devel-1.0.1e-48.el6_8.4.x86_64 28/31
Verifying : gcc-4.4.7-17.el6.x86_64 29/31
Verifying : libgomp-4.4.7-17.el6.x86_64 30/31
Verifying : ca-certificates-2015.2.6-65.0.1.el6_7.noarch 31/31

Installed:
augeas-libs.x86_64 0:1.0.0-10.el6 libffi-devel.x86_64 0:3.0.5-3.2.el6 python34.x86_64 0:3.4.8-1.el6 python34-devel.x86_64 0:3.4.8-1.el6 python34-tools.x86_64 0:3.4.8-1.el6
redhat-rpm-config.noarch 0:9.0.3-51.el6.centos

Dependency Installed:
python-rpm-macros.noarch 0:3-13.el6 python-srpm-macros.noarch 0:3-13.el6 python3-rpm-macros.noarch 0:3-13.el6 python34-libs.x86_64 0:3.4.8-1.el6 python34-tkinter.x86_64 0:3.4.8-1.el6

Updated:
ca-certificates.noarch 0:2018.2.22-65.1.el6 gcc.x86_64 0:4.4.7-23.el6 mod_ssl.x86_64 2:2.2.15-60.el6.6vm openssl.x86_64 0:1.0.1e-57.el6 openssl-devel.x86_64 0:1.0.1e-57.el6

Dependency Updated:
cpp.x86_64 0:4.4.7-23.el6 httpd.x86_64 1:2.2.15-60.el6.6vm httpd-tools.x86_64 1:2.2.15-60.el6.6vm libgcc.x86_64 0:4.4.7-23.el6 libgomp.x86_64 0:4.4.7-23.el6

Complete!
Creating virtual environment…
Installing Python packages…

Installation succeeded.
usage:
letsencrypt-auto [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] …

Certbot can obtain and install HTTPS/TLS/SSL certificates. By default,
it will attempt to use a webserver both for obtaining and installing the
certificate.
certbot: error: unrecognized arguments: www.the-d2.com

[[email protected] letsencrypt]#./letsencrypt-auto certonly -a standalone -d the-d2.com -d www.the-d2.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Enter email address (used for urgent renewal and security notices) (Enter ‘c’ to
cancel): [email protected]

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server at
https://acme-v02.api.letsencrypt.org/directory
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
(A)gree/(C)ancel: A

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let’s Encrypt project and the non-profit
organization that develops Certbot? We’d like to send you email about our work
encrypting the web, EFF news, campaigns, and ways to support digital freedom.
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
(Y)es/(N)o: Y
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for the-d2.com
http-01 challenge for www.the-d2.com
Cleaning up challenges
Problem binding to port 80: Could not bind to IPv4 or IPv6.

IMPORTANT NOTES:
– Your account credentials have been saved in your Certbot
configuration directory at /etc/letsencrypt. You should make a
secure backup of this folder now. This configuration directory will
also contain certificates and private keys obtained by Certbot so
making regular backups of this folder is ideal.

[[email protected] letsencrypt]# ./letsencrypt-auto certonly -d the-d2.com -d www.the-d2.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log

How would you like to authenticate with the ACME CA?
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
1: Apache Web Server plugin (apache)
2: Nginx Web Server plugin (nginx)
3: Spin up a temporary webserver (standalone)
4: Place files in webroot directory (webroot)
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
Select the appropriate number [1-4] then [enter] (press ‘c’ to cancel): ^CExiting abnormally:
Traceback (most recent call last):
File “/opt/eff.org/certbot/venv/bin/letsencrypt”, line 11, in <module>
load_entry_point(‘letsencrypt==0.7.0’, ‘console_scripts’, ‘letsencrypt’)()
File “/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/main.py”, line 1352, in main
return config.func(config, plugins)
File “/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/main.py”, line 1206, in certonly
installer, auth = plug_sel.choose_configurator_plugins(config, plugins, “certonly”)
File “/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/plugins/selection.py”, line 230, in choose_configurator_plugins
authenticator = pick_authenticator(config, req_auth, plugins)
File “/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/plugins/selection.py”, line 40, in pick_authenticator
config, default, plugins, question, (interfaces.IAuthenticator,))
File “/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/plugins/selection.py”, line 111, in pick_plugin
plugin_ep = choose_plugin(list(six.itervalues(prepared)), question)
File “/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/plugins/selection.py”, line 152, in choose_plugin
code, index = disp.menu(question, opts, force_interactive=True)
File “/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/display/util.py”, line 155, in menu
code, selection = self._get_valid_int_ans(len(choices))
File “/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/display/util.py”, line 418, in _get_valid_int_ans
ans = input_with_timeout(input_msg)
File “/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/display/util.py”, line 82, in input_with_timeout
line = compat.readline_with_timeout(timeout, prompt)
File “/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/compat.py”, line 107, in readline_with_timeout
rlist, _, _ = select.select([sys.stdin], [], [], timeout)
KeyboardInterrupt
Please see the logfiles in /var/log/letsencrypt for more details.

[[email protected] letsencrypt]# less /var/log/letsencrypt/letsencrypt.log
[[email protected] letsencrypt]# vim /etc/nginx/nginx.conf

[[email protected] letsencrypt]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
[[email protected] letsencrypt]# ./letsencrypt-auto certonly -d the-d2.com -d www.the-d2.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log

How would you like to authenticate with the ACME CA?
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
1: Apache Web Server plugin (apache)
2: Nginx Web Server plugin (nginx)
3: Spin up a temporary webserver (standalone)
4: Place files in webroot directory (webroot)
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
Select the appropriate number [1-4] then [enter] (press ‘c’ to cancel): ^CExiting abnormally:
Traceback (most recent call last):
File “/opt/eff.org/certbot/venv/bin/letsencrypt”, line 11, in <module>
load_entry_point(‘letsencrypt==0.7.0’, ‘console_scripts’, ‘letsencrypt’)()
File “/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/main.py”, line 1352, in main
return config.func(config, plugins)
File “/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/main.py”, line 1206, in certonly
installer, auth = plug_sel.choose_configurator_plugins(config, plugins, “certonly”)
File “/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/plugins/selection.py”, line 230, in choose_configurator_plugins
authenticator = pick_authenticator(config, req_auth, plugins)
File “/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/plugins/selection.py”, line 40, in pick_authenticator
config, default, plugins, question, (interfaces.IAuthenticator,))
File “/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/plugins/selection.py”, line 111, in pick_plugin
plugin_ep = choose_plugin(list(six.itervalues(prepared)), question)
File “/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/plugins/selection.py”, line 152, in choose_plugin
code, index = disp.menu(question, opts, force_interactive=True)
File “/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/display/util.py”, line 155, in menu
code, selection = self._get_valid_int_ans(len(choices))
File “/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/display/util.py”, line 418, in _get_valid_int_ans
ans = input_with_timeout(input_msg)
File “/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/display/util.py”, line 82, in input_with_timeout
line = compat.readline_with_timeout(timeout, prompt)
File “/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/compat.py”, line 107, in readline_with_timeout
rlist, _, _ = select.select([sys.stdin], [], [], timeout)
KeyboardInterrupt
Please see the logfiles in /var/log/letsencrypt for more details.
[[email protected] letsencrypt]# service nginx restart
Stopping nginx: [ OK ]
Starting nginx: [ OK ]
[[email protected] letsencrypt]# ./letsencrypt-auto certonly -d the-d2.com -d www.the-d2.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log

How would you like to authenticate with the ACME CA?
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
1: Apache Web Server plugin (apache)
2: Nginx Web Server plugin (nginx)
3: Spin up a temporary webserver (standalone)
4: Place files in webroot directory (webroot)
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
Select the appropriate number [1-4] then [enter] (press ‘c’ to cancel): 2
Plugins selected: Authenticator nginx, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for www.the-d2.com
http-01 challenge for the-d2.com
Waiting for verification…
Cleaning up challenges

IMPORTANT NOTES:
– Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/the-d2.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/the-d2.com/privkey.pem
Your cert will expire on 2016-02-03. To obtain a new or tweaked
version of this certificate in the future, simply run
letsencrypt-auto again. To non-interactively renew *all* of your
certificates, run “letsencrypt-auto renew”
– If you like Certbot, please consider supporting our work by:

Donating to ISRG / Let’s Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le

[[email protected] letsencrypt]# vim /etc/nginx/nginx.conf
[[email protected] letsencrypt]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
[[email protected] letsencrypt]# service nginx restart
Stopping nginx: [ OK ]
Starting nginx: [ OK ]
[[email protected] letsencrypt]#