<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body><div style="font-family:Helvetica,Arial;font-size:13px">Could you give us an example (in hex or b64 or something) so we can easily reproduce? Make sure any certs you're giving us don't contain sensitive data of course.</div><div style="font-family:Helvetica,Arial;font-size:13px"><br></div><div style="font-family:Helvetica,Arial;font-size:13px">-Paul</div> <br> <div class="gmail_signature"></div> <br><p class="airmail_on">On December 19, 2018 at 11:55:04 PM, Robert Simmons (<a href="mailto:rsimmons0@gmail.com">rsimmons0@gmail.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>


<title></title>


<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">I've asked this question on Stack Overflow here:
<div><a href="https://stackoverflow.com/q/53862702/1033217">https://stackoverflow.com/q/53862702/1033217</a><br>
</div>
<div><br></div>
<div>I have compared my code to Dider Stevens's disitool here
(examine the function ExtractDigitalSignature):</div>
<div><a href="https://github.com/DidierStevens/DidierStevensSuite/blob/master/disitool.py">
https://github.com/DidierStevens/DidierStevensSuite/blob/master/disitool.py</a><br>
</div>
<div><br></div>
<div>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.</div>
<div><br></div>
<div>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).</div>
<div><br></div>
<div>Any idea what's going on?<br></div>
</div>
</div>
</div>
</div>


_______________________________________________
<br>Cryptography-dev mailing list
<br><a href="mailto:Cryptography-dev@python.org">Cryptography-dev@python.org</a>
<br><a href="https://mail.python.org/mailman/listinfo/cryptography-dev">https://mail.python.org/mailman/listinfo/cryptography-dev</a>
<br></div></div></span></blockquote></body></html>