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. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:
api.homadorma.com
I ran this command:
sudo certbot --nginx
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
An unexpected error occurred:
TypeError: init() got an unexpected keyword argument ‘cert_file’
Please see the logfiles in /var/log/letsencrypt for more details.
Error in logfile:
2020-05-06 18:23:44,348:DEBUG:certbot.main:certbot version: 0.31.0
2020-05-06 18:23:44,349:DEBUG:certbot.main:Arguments: [’–nginx’]
2020-05-06 18:23:44,349:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#certbot-route53:auth,PluginEntryPoint#dns-route53,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2020-05-06 18:23:44,359:DEBUG:certbot.log:Root logging level set at 20
2020-05-06 18:23:44,360:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2020-05-06 18:23:44,362:DEBUG:certbot.plugins.selection:Requested authenticator nginx and installer nginx
2020-05-06 18:23:44,455:DEBUG:certbot.plugins.selection:Single candidate plugin: * nginx
Description: Nginx Web Server plugin
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: nginx = certbot_nginx.configurator:NginxConfigurator
Initialized: <certbot_nginx.configurator.NginxConfigurator object at 0x7f5b0b4d5400>
Prep: True
2020-05-06 18:23:44,456:DEBUG:certbot.plugins.selection:Selected authenticator <certbot_nginx.configurator.NginxConfigurator object at 0x7f5b0b4d5400> and installer <certbot_nginx.configurator.NginxConfigurator object at 0x7f5b0b4d5400>
2020-05-06 18:23:44,456:INFO:certbot.plugins.selection:Plugins selected: Authenticator nginx, Installer nginx
2020-05-06 18:23:44,461:DEBUG:certbot.main:Picked account: <Account(RegistrationResource(body=Registration(key=None, contact=(), agreement=None, status=None, terms_of_service_agreed=None, only_return_existing=None, external_account_binding=None), uri=‘https://acme-v02.api.letsencrypt.org/acme/acct/83299035’, new_authzr_uri=None, terms_of_service=None), e60609b79128dc421de8e5c64136a142, Meta(creation_dt=datetime.datetime(2020, 4, 13, 14, 3, 27, tzinfo=), creation_host=‘ip-172-31-26-211.us-east-2.compute.internal’))>
2020-05-06 18:23:44,463:DEBUG:acme.client:Sending GET request to https://acme-v02.api.letsencrypt.org/directory.
2020-05-06 18:23:44,465:DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org:443
2020-05-06 18:23:44,465:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File “/usr/bin/certbot”, line 11, in
load_entry_point(‘certbot==0.31.0’, ‘console_scripts’, ‘certbot’)()
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 1365, in main
return config.func(config, plugins)
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 1111, in run
le_client = _init_le_client(config, authenticator, installer)
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 612, in _init_le_client
return client.Client(config, acc, authenticator, installer, acme=acme)
File “/usr/lib/python3/dist-packages/certbot/client.py”, line 266, in init
acme = acme_from_config_key(config, self.account.key, self.account.regr)
File “/usr/lib/python3/dist-packages/certbot/client.py”, line 51, in acme_from_config_key
return acme_client.BackwardsCompatibleClientV2(net, key, config.server)
File “/usr/lib/python3/dist-packages/acme/client.py”, line 833, in init
directory = messages.Directory.from_json(net.get(server).json())
File “/usr/lib/python3/dist-packages/acme/client.py”, line 1171, in get
self._send_request(‘GET’, url, **kwargs), content_type=content_type)
File “/usr/lib/python3/dist-packages/acme/client.py”, line 1120, in _send_request
response = self.session.request(method, url, *args, **kwargs)
File “/home/ubuntu/.local/lib/python3.6/site-packages/requests/sessions.py”, line 530, in request
resp = self.send(prep, **send_kwargs)
File “/home/ubuntu/.local/lib/python3.6/site-packages/requests/sessions.py”, line 643, in send
r = adapter.send(request, **kwargs)
File “/home/ubuntu/.local/lib/python3.6/site-packages/requests/adapters.py”, line 449, in send
timeout=timeout
File “/home/ubuntu/.local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 659, in urlopen
conn = self._get_conn(timeout=pool_timeout)
File “/home/ubuntu/.local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 279, in _get_conn
return conn or self._new_conn()
File “/home/ubuntu/.local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 963, in _new_conn
**self.conn_kw
File “/usr/lib/python3/dist-packages/botocore/awsrequest.py”, line 70, in init
HTTPConnection.init(self, *args, **kwargs)
File “/home/ubuntu/.local/lib/python3.6/site-packages/urllib3/connection.py”, line 115, in init
_HTTPConnection.init(self, *args, **kw)
TypeError: init() got an unexpected keyword argument ‘cert_file’
My web server is (include version):
nginx
The operating system my web server runs on is (include version):
ubuntu 18.04
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):
certbot 0.31.0
Further note:
The ssl is currently set up manually using certbot-auto. The thing with certbot-auto is that the auto renewal does not work.