Ralph Broenink added the comment:
Here's a minimal example of the issue, assuming you have obtained a CRL in PEM
format, e.g. from https://www.emulab.net/genicrl.bundle:
import ssl
context = ssl.create_default_context()
path = 'path/to/crl.crl'
New submission from Ralph Broenink:
Issue #18138 added support for the cadata argument in
SSLContext.load_verify_locations. However, this argument does not support
certificate revocation lists (CRLs) to be added (at least not in PEM format):
ssl.SSLError: [PEM: NO_START_LINE] no start
Ralph Broenink added the comment:
Perhaps this should be documented then :)
--
___
Python tracker
<http://bugs.python.org/issue22154>
___
___
Python-bugs-list m
New submission from Ralph Broenink:
In Python 3.2, context manager support for ZipFile was added. However, I would
also love the ability for ``ZipFile.open`` to be used as a context manager,
e.g.:
from zipfile import ZipFile
with ZipFile("test.zip", "r") as z: