My domain is: innercircles.community
I ran this command:
note: email removed
sudo docker run -it \
--name letsencrypt \
--volumes-from nginx-tmp \
-v /home/alpine/logs:/var/log/letsencrypt \
quay.io/letsencrypt/letsencrypt \
certonly \
--agree-tos \
--webroot \
--webroot-path /usr/share/nginx/html \
-m <my_email> \
-d innercircles.community
It produced this output:
Warning: This Docker image will soon be switching to Alpine Linux.
You can switch now using the certbot/certbot repo on Docker Hub.
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
An unexpected error occurred:
SystemError: error return without exception set
Please see the logfiles in /var/log/letsencrypt for more details.
The letsencrypt.log
contains the following:
2018-03-13 06:32:01,316:DEBUG:certbot.main:certbot version: 0.23.0.dev0
2018-03-13 06:32:01,316:DEBUG:certbot.main:Arguments: ['--agree-tos', '--webroot', '--webroot-path', '/usr/share/nginx/html', '-m', '<my_email>', '-d', 'innercircles.community']
2018-03-13 06:32:01,316:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2018-03-13 06:32:01,331:DEBUG:certbot.log:Root logging level set at 20
2018-03-13 06:32:01,331:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2018-03-13 06:32:01,332:DEBUG:certbot.plugins.selection:Requested authenticator webroot and installer None
2018-03-13 06:32:01,338:DEBUG:certbot.plugins.selection:Single candidate plugin: * webroot
Description: Place files in webroot directory
Interfaces: IAuthenticator, IPlugin
Entry point: webroot = certbot.plugins.webroot:Authenticator
Initialized: <certbot.plugins.webroot.Authenticator object at 0x6826f815a910>
Prep: True
2018-03-13 06:32:01,338:DEBUG:certbot.plugins.selection:Selected authenticator <certbot.plugins.webroot.Authenticator object at 0x6826f815a910> and installer None
2018-03-13 06:32:01,338:INFO:certbot.plugins.selection:Plugins selected: Authenticator webroot, Installer None
2018-03-13 06:32:01,445:DEBUG:acme.client:Sending GET request to https://acme-v01.api.letsencrypt.org/directory.
2018-03-13 06:32:01,447:DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
2018-03-13 06:32:01,451:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File "/opt/certbot/venv/bin/certbot", line 11, in <module>
load_entry_point('certbot', 'console_scripts', 'certbot')()
File "/opt/certbot/src/certbot/main.py", line 1266, in main
return config.func(config, plugins)
File "/opt/certbot/src/certbot/main.py", line 1141, in certonly
le_client = _init_le_client(config, auth, installer)
File "/opt/certbot/src/certbot/main.py", line 635, in _init_le_client
acc, acme = _determine_account(config)
File "/opt/certbot/src/certbot/main.py", line 514, in _determine_account
config, account_storage, tos_cb=_tos_cb)
File "/opt/certbot/src/certbot/client.py", line 164, in register
acme = acme_from_config_key(config, key)
File "/opt/certbot/src/certbot/client.py", line 46, in acme_from_config_key
return acme_client.BackwardsCompatibleClientV2(net, key, config.server)
File "/opt/certbot/src/acme/acme/client.py", line 717, in __init__
directory = messages.Directory.from_json(net.get(server).json())
File "/opt/certbot/src/acme/acme/client.py", line 1040, in get
self._send_request('GET', url, **kwargs), content_type=content_type)
File "/opt/certbot/src/acme/acme/client.py", line 989, in _send_request
response = self.session.request(method, url, *args, **kwargs)
File "/opt/certbot/venv/local/lib/python2.7/site-packages/requests/sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "/opt/certbot/venv/local/lib/python2.7/site-packages/requests/sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "/opt/certbot/venv/local/lib/python2.7/site-packages/requests/adapters.py", line 440, in send
timeout=timeout
File "/opt/certbot/venv/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 601, in urlopen
chunked=chunked)
File "/opt/certbot/venv/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 346, in _make_request
self._validate_conn(conn)
File "/opt/certbot/venv/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn
conn.connect()
File "/opt/certbot/venv/local/lib/python2.7/site-packages/urllib3/connection.py", line 314, in connect
cert_reqs=resolve_cert_reqs(self.cert_reqs),
File "/opt/certbot/venv/local/lib/python2.7/site-packages/urllib3/util/ssl_.py", line 274, in create_urllib3_context
context.verify_mode = cert_reqs
File "/opt/certbot/venv/local/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py", line 400, in verify_mode
_verify_callback
File "/opt/certbot/venv/local/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1061, in set_verify
self._verify_helper = _VerifyHelper(callback)
File "/opt/certbot/venv/local/lib/python2.7/site-packages/OpenSSL/SSL.py", line 337, in __init__
"int (*)(int, X509_STORE_CTX *)", wrapper)
SystemError: error return without exception set
2018-03-13 06:32:01,453:ERROR:certbot.log:An unexpected error occurred:
My web server is (include version): nginx 1.13.9 (latest) run in a temporary docker container (its just to get the certificates)
The operating system my web server runs on is (include version): Alpine-3.7-r2-Hardened-EC2
My hosting provider, if applicable, is: AWS EC2, a t2.micro
instance
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, bash shell via SSH
When I did this same operation previously, but on a RancherOS
instance, everything worked like a charm.
PS. Running docker with sudo
is not the issue. I also tried with doing sudo -i
first.