Simple python script to check for malformed certificate in local Windows store.
Why it's needed?
Sometimes different apps (especially bank) can install certificates in Windows root store.
These certificates can cause python ssl library to throw some rather ambiguous exceptions that's not pointing on exact certificate causing this error.
Exception example [ASN1] nested asn1 error (_ssl.c:4027)
This script checks if ssl throws and if so try to decode certificate and prints human-readable name.
Later using that name you can manually delete this certificate from Windows store.
Use command certmgr.msc to access this store.