Certbot fails in CentOS version 7

Hi, I am using a Digital Ocean droplet with CentOS version 7, I have successfully created a swap file as well, but certbot keeps failing with this command. Anyone has any ideas?

[root@mail letsencrypt]# ./letsencrypt-auto -vv -h --server https://intrafeed.co certonly -a manual
Bootstrapping dependencies for RedHat-based OSes...
yum is /usr/bin/yum
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirror.hmc.edu

  • epel: mirror.prgmr.com

  • extras: mirror.n5tech.com

  • updates: mirror.cogentco.com
    Package gcc-4.8.5-4.el7.x86_64 already installed and latest version
    Package dialog-1.2-4.20130523.el7.x86_64 already installed and latest version
    Package augeas-libs-1.4.0-2.el7.x86_64 already installed and latest version
    Package 1:openssl-1.0.1e-51.el7_2.5.x86_64 already installed and latest version
    Package 1:openssl-devel-1.0.1e-51.el7_2.5.x86_64 already installed and latest version
    Package libffi-devel-3.0.13-16.el7.x86_64 already installed and latest version
    Package redhat-rpm-config-9.1.0-68.el7.centos.noarch already installed and latest version
    Package ca-certificates-2015.2.6-70.1.el7_2.noarch already installed and latest version
    Package python-2.7.5-34.el7.x86_64 already installed and latest version
    Package python-devel-2.7.5-34.el7.x86_64 already installed and latest version
    Package python-virtualenv-1.10.1-2.el7.noarch already installed and latest version
    Package python-tools-2.7.5-34.el7.x86_64 already installed and latest version
    Package python-pip-7.1.0-1.el7.noarch already installed and latest version
    Package 1:mod_ssl-2.4.6-40.el7.centos.1.x86_64 already installed and latest version
    Nothing to do
    Creating virtual environment...
    Running virtualenv with interpreter /usr/bin/python2.7
    New python executable in /root/.local/share/letsencrypt/bin/python2.7
    Also creating executable in /root/.local/share/letsencrypt/bin/python
    Installing setuptools, pip, wheel...done.
    Installing Python packages...
    Had a problem while installing Python packages:
    Collecting argparse==1.4.0 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 5))
    Downloading argparse-1.4.0-py2.py3-none-any.whl
    Collecting pycparser==2.14 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 11))
    Downloading pycparser-2.14.tar.gz (223kB)
    Collecting cffi==1.4.2 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 14))
    Downloading cffi-1.4.2.tar.gz (365kB)
    Collecting ConfigArgParse==0.10.0 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 31))
    Downloading ConfigArgParse-0.10.0.tar.gz
    Collecting configobj==5.0.6 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 33))
    Downloading configobj-5.0.6.tar.gz
    Collecting cryptography==1.2.3 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 35))
    Downloading cryptography-1.2.3.tar.gz (373kB)
    Collecting enum34==1.1.2 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 57))
    Downloading enum34-1.1.2.tar.gz (46kB)
    Collecting funcsigs==0.4 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 60))
    Downloading funcsigs-0.4-py2.py3-none-any.whl
    Collecting idna==2.0 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 63))
    Downloading idna-2.0-py2.py3-none-any.whl (61kB)
    Collecting ipaddress==1.0.16 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 66))
    Downloading ipaddress-1.0.16-py27-none-any.whl
    Collecting linecache2==1.0.0 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 69))
    Downloading linecache2-1.0.0-py2.py3-none-any.whl
    Collecting ndg-httpsclient==0.4.0 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 72))
    Downloading ndg_httpsclient-0.4.0.tar.gz
    Collecting ordereddict==1.1 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 74))
    Downloading ordereddict-1.1.tar.gz
    Collecting parsedatetime==2.1 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 76))
    Downloading parsedatetime-2.1-py2-none-any.whl
    Collecting pbr==1.8.1 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 79))
    Downloading pbr-1.8.1-py2.py3-none-any.whl (89kB)
    Collecting psutil==3.3.0 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 82))
    Downloading psutil-3.3.0.tar.gz (261kB)
    Collecting pyasn1==0.1.9 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 104))
    Downloading pyasn1-0.1.9-py2.py3-none-any.whl
    Collecting pyOpenSSL==0.15.1 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 116))
    Downloading pyOpenSSL-0.15.1-py2.py3-none-any.whl (102kB)
    Collecting pyRFC3339==1.0 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 119))
    Downloading pyRFC3339-1.0-py2.py3-none-any.whl
    Collecting python-augeas==0.5.0 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 122))
    Downloading python-augeas-0.5.0.tar.gz (90kB)
    Collecting python2-pythondialog==3.3.0 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 124))
    Downloading python2-pythondialog-3.3.0.tar.bz2 (1.8MB)
    Collecting pytz==2015.7 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 127))
    Downloading pytz-2015.7-py2.py3-none-any.whl (476kB)
    Collecting requests==2.9.1 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 141))
    Downloading requests-2.9.1-py2.py3-none-any.whl (501kB)
    Collecting six==1.10.0 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 144))
    Downloading six-1.10.0-py2.py3-none-any.whl
    Collecting traceback2==1.4.0 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 147))
    Downloading traceback2-1.4.0-py2.py3-none-any.whl
    Collecting unittest2==1.1.0 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 150))
    Downloading unittest2-1.1.0-py2.py3-none-any.whl (96kB)
    Collecting zope.component==4.2.2 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 153))
    Downloading zope.component-4.2.2.tar.gz (546kB)
    Collecting zope.event==4.1.0 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 155))
    Downloading zope.event-4.1.0.tar.gz (476kB)
    Collecting zope.interface==4.1.3 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 157))
    Downloading zope.interface-4.1.3.tar.gz (141kB)
    Collecting mock==1.0.1 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 175))
    Downloading mock-1.0.1.zip (861kB)
    Collecting letsencrypt==0.7.0 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 178))
    Downloading letsencrypt-0.7.0-py2-none-any.whl
    Collecting acme==0.8.1 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 184))
    Downloading acme-0.8.1-py2.py3-none-any.whl (91kB)
    Collecting certbot==0.8.1 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 187))
    Downloading certbot-0.8.1-py2-none-any.whl (217kB)
    Collecting certbot-apache==0.8.1 (from -r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 190))
    Downloading certbot_apache-0.8.1-py2-none-any.whl (103kB)
    Requirement already satisfied (use --upgrade to upgrade): setuptools>=1.0 in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from cryptography==1.2.3->-r /tmp/tmp.vm9DPUqhle/letsencrypt-auto-requirements.txt (line 35))
    Installing collected packages: argparse, pycparser, cffi, ConfigArgParse, six, configobj, idna, pyasn1, enum34, ipaddress, cryptography, funcsigs, linecache2, pyOpenSSL, ndg-httpsclient, ordereddict, parsedatetime, pbr, psutil, pytz, pyRFC3339, python-augeas, python2-pythondialog, requests, traceback2, unittest2, zope.interface, zope.event, zope.component, mock, acme, certbot, letsencrypt, certbot-apache
    Running setup.py install for pycparser: started
    Running setup.py install for pycparser: finished with status 'done'
    Running setup.py install for cffi: started
    Running setup.py install for cffi: finished with status 'done'
    Running setup.py install for ConfigArgParse: started
    Running setup.py install for ConfigArgParse: finished with status 'done'
    Running setup.py install for configobj: started
    Running setup.py install for configobj: finished with status 'done'
    Running setup.py install for enum34: started
    Running setup.py install for enum34: finished with status 'done'
    Running setup.py install for cryptography: started
    Running setup.py install for cryptography: finished with status 'error'
    Complete output from command /root/.local/share/letsencrypt/bin/python2.7 -u -c "import setuptools, tokenize;file='/tmp/pip-build-FAjqsR/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-XvLkmy-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/.local/share/letsencrypt/include/site/python2.7/cryptography:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    creating build/lib.linux-x86_64-2.7/cryptography
    copying src/cryptography/init.py -> build/lib.linux-x86_64-2.7/cryptography
    copying src/cryptography/about.py -> build/lib.linux-x86_64-2.7/cryptography
    copying src/cryptography/fernet.py -> build/lib.linux-x86_64-2.7/cryptography
    copying src/cryptography/exceptions.py -> build/lib.linux-x86_64-2.7/cryptography
    copying src/cryptography/utils.py -> build/lib.linux-x86_64-2.7/cryptography
    creating build/lib.linux-x86_64-2.7/cryptography/x509
    copying src/cryptography/x509/init.py -> build/lib.linux-x86_64-2.7/cryptography/x509
    copying src/cryptography/x509/name.py -> build/lib.linux-x86_64-2.7/cryptography/x509
    copying src/cryptography/x509/general_name.py -> build/lib.linux-x86_64-2.7/cryptography/x509
    copying src/cryptography/x509/base.py -> build/lib.linux-x86_64-2.7/cryptography/x509
    copying src/cryptography/x509/extensions.py -> build/lib.linux-x86_64-2.7/cryptography/x509
    copying src/cryptography/x509/oid.py -> build/lib.linux-x86_64-2.7/cryptography/x509
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat
    copying src/cryptography/hazmat/init.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
    copying src/cryptography/hazmat/backends/multibackend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
    copying src/cryptography/hazmat/backends/init.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
    copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/init.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/serialization.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
    copying src/cryptography/hazmat/bindings/init.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/init.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
    copying src/cryptography/hazmat/backends/commoncrypto/ciphers.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
    copying src/cryptography/hazmat/backends/commoncrypto/init.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
    copying src/cryptography/hazmat/backends/commoncrypto/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
    copying src/cryptography/hazmat/backends/commoncrypto/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
    copying src/cryptography/hazmat/backends/commoncrypto/backend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/init.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/init.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/init.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/init.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/interfaces
    copying src/cryptography/hazmat/primitives/interfaces/init.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/interfaces
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
    copying src/cryptography/hazmat/bindings/openssl/init.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
    copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
    copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
    copying src/cryptography/hazmat/bindings/commoncrypto/init.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
    copying src/cryptography/hazmat/bindings/commoncrypto/binding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
    running egg_info
    writing requirements to src/cryptography.egg-info/requires.txt
    writing src/cryptography.egg-info/PKG-INFO
    writing top-level names to src/cryptography.egg-info/top_level.txt
    writing dependency_links to src/cryptography.egg-info/dependency_links.txt
    writing entry points to src/cryptography.egg-info/entry_points.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'docs/_build'
    warning: no previously-included files matching '*' found under directory 'vectors'
    writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
    running build_ext
    generating cffi module 'build/temp.linux-x86_64-2.7/_padding.c'
    creating build/temp.linux-x86_64-2.7
    generating cffi module 'build/temp.linux-x86_64-2.7/_constant_time.c'
    generating cffi module 'build/temp.linux-x86_64-2.7/_openssl.c'
    building '_openssl' extension
    creating build/temp.linux-x86_64-2.7/build
    creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o
    In file included from /usr/include/krb5.h:8:0,
    from /usr/include/openssl/kssl.h:72,
    from /usr/include/openssl/ssl.h:165,
    from build/temp.linux-x86_64-2.7/_openssl.c:512:
    /usr/include/krb5/krb5.h:8193:24: fatal error: et/com_err.h: No such file or directory
    #include <et/com_err.h>
    ^
    compilation terminated.
    error: command 'gcc' failed with exit status 1


Command "/root/.local/share/letsencrypt/bin/python2.7 -u -c "import setuptools, tokenize;file='/tmp/pip-build-FAjqsR/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-XvLkmy-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-FAjqsR/cryptography
You are using pip version 8.0.3, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[root@mail letsencrypt]#

Hey @dickyinjava,

Have a look at

and see if either of @serverco's links are able to help you. Let us know if they do or if you still need further help.

:smiley:

I understand there’s a package for certbot in the EPEL repository, so you shouldn’t need to use the letsencrypt-auto script. “yum --enablerepo=epel install certbot” should install it.

Ok, I did run the command successfully. But how do I generate the SSL certificate? I need to install it in Apache Tomcat, so I still need to run the letsencrypt-auto, which brings me back to the same error again…

No, you don’t need to run ‘letsencrypt-auto’; you would run ‘certbot’ instead. In whatever instructions you have, replace ‘letsencrypt-auto’ with ‘certbot’.

I tried running certbot, and it is trying to install the certificates in httpd on port 80, which is not where my Apache Tomcat is , and as far as I know, certbot does not support Apache Tomcat.

Neither certbot nor the older letsencrypt client (of which certbot is simply a newer, renamed version) “support” Tomcat. They both obtain certificates in the same way, validating domain control in the same way, and support automated installation of the certificates in the same way. With either of those clients, you’ll likely need to do some additional manual work to use the certificate with Tomcat. If you have instructions that call for the use of letsencrypt-auto, again, you can replace that with certbot and you should get the same result.

If you have those instructions, you’ve tried replacing letsencrypt-auto with certbot, and you’re not getting the expected/desired results, try posting some more detail about what’s going on when you try.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.