python - Retrieve and validate x509 certificate chain -
i trying determine best way retrieve , validate chain of x509 certificates in python.
if certificates in chain invalid, need able identify 1 , reason (like openssl verify @ command line). newer versions of python ssl module seem offer functionality, i'm not version available code run.
i have done best researching similar question on here, specifically
how verify ssl certificate in python?
validate ssl certificates python
how use m2crypto validate x509 certificate chain in non-ssl setting
however i'm still not clear on best way go it.
is possible achieve functionality (isolating single invalid certificate) using builtin ssl module, or need use m2crypto?
if neither of these appropriate, subprocess module call out openssl alternative solution?
Comments
Post a Comment