Lets Encrypt failing on certificate renew

My first MiaB Let’s Encrypt certificates are up for renewal and I’m getting the following error:

user@mail:~/mailinabox# ./management/ssl_certificates.py
Traceback (most recent call last):
  File "./management/ssl_certificates.py", line 793, in <module> provision_certificates_cmdline()
  File "./management/ssl_certificates.py", line 436, in provision_certificates_cmdline status = provision_certificates(env, agree_to_tos_url=agree_to_tos_url, logger=my_logger, force_domains=force_domains, show_extended_problems=show_extended_problems)
  File "./management/ssl_certificates.py", line 323, in provision_certificates logger=my_logger)
  File "/usr/local/lib/python3.4/dist-packages/free_tls_certificates/client.py", line 153, in issue_certificate cert_pem = cert_to_pem(cert_response.body)
  File "/usr/local/lib/python3.4/dist-packages/free_tls_certificates/client.py", line 152, in cert_to_em return OpenSSL.crypto.dump_certificate(OpenSSL.crypto.FILETYPE_PEM, cert)
TypeError: must be X509, not ComparableX509

Any help would be appreciated.

Could you run and post the output of

pip3 freeze | egrep "cryptography|pyOpenSSL|free-tls"


Hi Josh. I get…

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in mainstatus = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/commands/freeze.py", line 74, in run req = pip.FrozenRequirement.from_dist(dist, dependency_links, find_tags=find_tags)
  File "/usr/lib/python3/dist-packages/pip/__init__.py", line 236, in from_dis assert len(specs) == 1 and specs[0][0] == '=='

This is back:

Hmm… I wonder if you’ll respond to him :wink:

I ended up provisioning a new box. Probably the fastest way.

I’m not a genie. I respond when I have an answer and the time to write it out.

1 Like