Jizhou Yang added the comment:
Thanks a lot for the quick answer! Verified that the proposed solution works
with PEM certificates in both Python 2 and 3.
--
stage: -> resolved
status: pending -> closed
___
Python tracker
<https://bugs.p
New submission from Jizhou Yang :
Loading cadata in PEM format results in a nested asn1 error. Workaround is to
convert cadata to unicode.
Minimum code for reproducing the issue:
>>>import ssl
>>> with open('ca.crt') as f:
... ca_crt = f.read()
...
>&g
Change by Jizhou Yang :
--
assignee: christian.heimes
components: SSL
nosy: Jizhou Yang, christian.heimes
priority: normal
severity: normal
status: open
title: PEM cadata causes ssl.SSLError: nested ans1 error
type: crash
versions: Python 2.7