I have a custom ACME client, written in Python - https://github.com/ipilcher/acme/blob/master/le-update-cert.
This was working fine until a couple of days ago. Now I’m getting an “unknown protocol” error when creating the acme.client.Client.
[root@asterisk system]# le-update-cert --production --debug --tty www.penurio.us
Updating certificate for www.penurio.us
certificate file: /var/lib/acme/www.penurio.us.crt
new certificate symlink: /var/lib/acme/www.penurio.us.new
CSR file: /etc/acme/www.penurio.us.csr
client key file: /etc/acme/client.key
ACME URL: https://acme-v01.api.letsencrypt.org/directory
ACME challenge directory: /var/www/acme-challenge
Loaded client key from /etc/acme/client.key
Traceback (most recent call last):
File "/usr/local/bin/le-update-cert", line 99, in <module>
acme_client = client.Client(ACME_URL, client_key)
File "/usr/lib/python2.7/site-packages/acme/client.py", line 267, in __init__
net.get(directory).json())
File "/usr/lib/python2.7/site-packages/acme/client.py", line 1041, in get
self._send_request('GET', url, **kwargs), content_type=content_type)
File "/usr/lib/python2.7/site-packages/acme/client.py", line 990, in _send_request
response = self.session.request(method, url, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 464, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 576, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 431, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:579)
Anyone have any idea what’s going on?