Page MenuHomePhabricator
Paste P7140

python urllib / ssl failed to allocate SSL context
ActivePublic

Authored by Krenair on May 20 2018, 11:48 AM.
Tags
None
Referenced Files
F18373712: python urllib / ssl failed to allocate SSL context
May 20 2018, 11:48 AM
Subscribers
None
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/le-central/le-central.py", line 72, in certificate_management
signedCert = acme_tiny.get_crt('/etc/certcentral/acct.key', csr, '/etc/certcentral/http_challenges')
File "/usr/local/sbin/acme_tiny.py", line 107, in get_crt
"agreement": "https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf",
File "/usr/local/sbin/acme_tiny.py", line 69, in _send_signed_request
protected["nonce"] = urlopen(CA + "/directory").headers['Replay-Nonce']
File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.5/urllib/request.py", line 466, in open
response = self._open(req, data)
File "/usr/lib/python3.5/urllib/request.py", line 484, in _open
'_open', req)
File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
result = func(*args)
File "/usr/lib/python3.5/urllib/request.py", line 1297, in https_open
context=self._context, check_hostname=self._check_hostname)
File "/usr/lib/python3.5/urllib/request.py", line 1223, in do_open
h = http_class(host, timeout=req.timeout, **http_conn_args)
File "/usr/lib/python3.5/http/client.py", line 1238, in __init__
context = ssl._create_default_https_context()
File "/usr/lib/python3.5/ssl.py", line 449, in create_default_context
context = SSLContext(PROTOCOL_TLS)
File "/usr/lib/python3.5/ssl.py", line 369, in __new__
self = _SSLContext.__new__(cls, protocol)
ssl.SSLError: ('failed to allocate SSL context',)