This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients alex, christian.heimes, dstufft, janssen, yan12125
Date 2016-09-18.19:09:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1474225759.35.0.409264417671.issue28182@psf.upfronthosting.co.za>
In-reply-to
Content
Good work! I completely forgot that the SSL object holds the last verification error in its struct. This allows the ssl module to print some information when cert verification fails. It's still not perfect, because it is missing information about the the failing certificate. It's much better than no reason at all.

I took your patch and simplified it a bit. I removed the sub reason attribute, too. We can add it later and use an enum.IntEnum instead of the old hack.

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:766)
History
Date User Action Args
2016-09-18 19:09:19christian.heimessetrecipients: + christian.heimes, janssen, alex, dstufft, yan12125
2016-09-18 19:09:19christian.heimessetmessageid: <1474225759.35.0.409264417671.issue28182@psf.upfronthosting.co.za>
2016-09-18 19:09:19christian.heimeslinkissue28182 messages
2016-09-18 19:09:19christian.heimescreate