Problems when getting ssl certificates


Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g., so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

I ran this command: sudo ./certbot-auto --debug -v --server certonly --webroot -w /var/lib/tomcat8/webapps/nepportal -d

It produced this output:
root@ip-18-0-1-12:/# sudo ./certbot-auto --debug -v --server certonly --webroot -w /var/lib/tomcat8/webapps/nepportal -d -d
Bootstrapping dependencies for Debian-based OSes… (you can skip this with --no-bootstrap)
Hit:1 xenial InRelease
Get:2 xenial-updates InRelease [109 kB]
Get:3 xenial-backports InRelease [107 kB]
Get:4 xenial-security InRelease [109 kB]
Hit:5 xenial InRelease
Hit:6 xenial InRelease
Ign:7 binary/ InRelease
Hit:8 binary/ Release
Hit:10 xenial InRelease
Fetched 325 kB in 1s (163 kB/s)
Reading package lists… Done
Reading package lists… Done
Building dependency tree
Reading state information… Done
gcc is already the newest version (4:5.3.1-1ubuntu1).
libffi-dev is already the newest version (3.2.1-4).
augeas-lenses is already the newest version (1.4.0-0ubuntu1.1).
ca-certificates is already the newest version (20170717~16.04.2).
libaugeas0 is already the newest version (1.4.0-0ubuntu1.1).
libssl-dev is already the newest version (1.0.2g-1ubuntu4.14).
openssl is already the newest version (1.0.2g-1ubuntu4.14).
python is already the newest version (2.7.12-1~16.04).
python-dev is already the newest version (2.7.12-1~16.04).
python-virtualenv is already the newest version (15.0.1+ds-3ubuntu1).
virtualenv is already the newest version (15.0.1+ds-3ubuntu1).
The following packages were automatically installed and are no longer required:
linux-aws-headers-4.4.0-1069 linux-headers-4.4.0-1069-aws linux-image-4.4.0-1069-aws
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 85 not upgraded.
Creating virtual environment…
Running virtualenv with interpreter /usr/bin/python2.7
New python executable in /opt/
Also creating executable in /opt/
Installing setuptools, pkg_resources, pip, wheel…done.
Installing Python packages…
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting argparse==1.4.0 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 11))
Collecting pycparser==2.14 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 17))
Downloading (223kB)
100% |████████████████████████████████| 225kB 18.6MB/s
Collecting asn1crypto==0.22.0 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 21))
Downloading (97kB)
100% |████████████████████████████████| 102kB 25.7MB/s
Collecting cffi==1.11.5 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 24))
Downloading (407kB)
100% |████████████████████████████████| 409kB 24.2MB/s
Collecting ConfigArgParse==0.12.0 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 57))
Downloading (41kB)
100% |████████████████████████████████| 51kB 61.8MB/s
Collecting configobj==5.0.6 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 60))
Collecting cryptography==2.2.2 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 63))
Downloading (2.2MB)
100% |████████████████████████████████| 2.2MB 65.4MB/s
Collecting enum34==1.1.2 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 83))
Downloading (46kB)
100% |████████████████████████████████| 51kB 57.9MB/s
Collecting funcsigs==1.0.2 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 86))
Collecting idna==2.5 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 89))
Downloading (55kB)
100% |████████████████████████████████| 61kB 59.8MB/s
Collecting ipaddress==1.0.16 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 92))
Collecting josepy==1.1.0 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 95))
Downloading (53kB)
100% |████████████████████████████████| 61kB 62.4MB/s
Collecting linecache2==1.0.0 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 98))
Collecting mock==1.3.0 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 102))
Downloading (56kB)
100% |████████████████████████████████| 61kB 59.3MB/s
Collecting ordereddict==1.1 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 105))
Collecting packaging==16.8 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 108))
Collecting parsedatetime==2.1 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 111))
Collecting pbr==1.8.1 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 114))
Downloading (89kB)
100% |████████████████████████████████| 92kB 60.3MB/s
Collecting pyOpenSSL==16.2.0 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 117))
Downloading (43kB)
100% |████████████████████████████████| 51kB 57.4MB/s
Collecting pyparsing==2.1.8 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 120))
Downloading (54kB)
100% |████████████████████████████████| 61kB 58.6MB/s
Collecting pyRFC3339==1.0 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 129))
Collecting python-augeas==0.5.0 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 132))
Downloading (90kB)
100% |████████████████████████████████| 92kB 63.7MB/s
Collecting pytz==2015.7 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 135))
Downloading (476kB)
100% |████████████████████████████████| 481kB 71.5MB/s
Collecting requests==2.20.0 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 149))
Downloading (60kB)
100% |████████████████████████████████| 61kB 59.2MB/s
Collecting six==1.10.0 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 152))
Collecting traceback2==1.4.0 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 155))
Collecting unittest2==1.1.0 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 158))
Downloading (96kB)
100% |████████████████████████████████| 102kB 62.6MB/s
Collecting zope.component==4.2.2 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 161))
Downloading (546kB)
100% |████████████████████████████████| 552kB 81.9MB/s
Collecting zope.event==4.1.0 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 164))
Downloading (476kB)
100% |████████████████████████████████| 481kB 45.3MB/s
Collecting zope.interface==4.1.3 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 167))
Downloading (141kB)
100% |████████████████████████████████| 143kB 76.1MB/s
Collecting requests-toolbelt==0.8.0 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 185))
Downloading (54kB)
100% |████████████████████████████████| 61kB 59.9MB/s
Collecting chardet==3.0.2 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 188))
Downloading (133kB)
100% |████████████████████████████████| 143kB 81.5MB/s
Collecting urllib3==1.24.1 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 191))
Downloading (118kB)
100% |████████████████████████████████| 122kB 77.0MB/s
Collecting certifi==2017.4.17 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 194))
Downloading (375kB)
100% |████████████████████████████████| 378kB 75.5MB/s
Collecting letsencrypt==0.7.0 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 205))
Collecting certbot==0.30.0 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 209))
Downloading (317kB)
100% |████████████████████████████████| 327kB 83.7MB/s
Collecting acme==0.30.0 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 212))
Downloading (85kB)
100% |████████████████████████████████| 92kB 64.6MB/s
Collecting certbot-apache==0.30.0 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 215))
Downloading (228kB)
100% |████████████████████████████████| 235kB 75.1MB/s
Collecting certbot-nginx==0.30.0 (from -r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 218))
Downloading (90kB)
100% |████████████████████████████████| 92kB 62.6MB/s
Requirement already satisfied: setuptools>=1.0 in /opt/ (from josepy==1.1.0->-r /tmp/tmp.3qmXUc1FqQ/letsencrypt-auto-requirements.txt (line 95)) (40.6.3)
Installing collected packages: argparse, pycparser, asn1crypto, cffi, ConfigArgParse, six, configobj, enum34, idna, ipaddress, cryptography, funcsigs, pyOpenSSL, josepy, linecache2, pbr, mock, ordereddict, pyparsing, packaging, parsedatetime, pytz, pyRFC3339, python-augeas, urllib3, chardet, certifi, requests, traceback2, unittest2, zope.interface, zope.event, zope.component, requests-toolbelt, acme, certbot, letsencrypt, certbot-apache, certbot-nginx
Found existing installation: argparse 1.2.1
Not uninstalling argparse at /usr/lib/python2.7, outside environment /opt/
Can’t uninstall ‘argparse’. No files were found to uninstall.
Running install for pycparser … done
Running install for ConfigArgParse … done
Running install for configobj … done
Running install for enum34 … done
Running install for ordereddict … done
Running install for python-augeas … done
Running install for zope.interface … done
Running install for zope.event … done
Running install for zope.component … done
Traceback (most recent call last):
File “/opt/”, line 176, in main
status =, args)
File “/opt/”, line 393, in run
File “/opt/”, line 57, in install_given_reqs
File “/opt/”, line 919, in install
use_user_site=use_user_site, pycompile=pycompile,
File “/opt/”, line 445, in move_wheel_files
File “/opt/”, line 583, in move_wheel_files
outrows = get_csv_rows_for_installed(reader)
File “/opt/”, line 565, in get_csv_rows_for_installed
for fpath, digest, length in old_csv_rows:
ValueError: too many values to unpack
Had a problem while installing Python packages.

My web server is (include version): Tomcat 8

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is:AWS

I can login to a root shell on my machine (yes or no, or I don’t know):yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):