I've asked this question on Stack Overflow here: https://stackoverflow.com/q/53862702/1033217
I have compared my code to Dider Stevens's disitool here (examine the function ExtractDigitalSignature): https://github.com/DidierStevens/DidierStevensSuite/blob/master/disitool.py When I load that extracted file into a variable and try to parse it with cryptography, it fails. If I pipe the same file to openssl on the command line, it works. I am thinking this has to do with the number of certificates in the directory in the PE file. There can be three (cert, intermediate CA, and CA, etc). Any idea what's going on?
_______________________________________________ Cryptography-dev mailing list Cryptography-dev@python.org https://mail.python.org/mailman/listinfo/cryptography-dev