<p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">Hi All,</p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">
<br></p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">I generated a private key with: </p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">
<br></p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">openssl.exe req -x509 -nodes -days 365 -newkey rsa:1024 -keyout sdgidfedapp11.corp.intuit.net.key -out sdgidfedapp11.corp.intuit.net.crt</p>
<p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c"><br></p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">I can't figure out is how to use PyCrypto.RSA.construct with it</p>
<p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">to decrypt something. This works however:</p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">
<br></p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">from M2Crypto import RSA</p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">
<br></p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">priv_key = RSA.load_key('private.key', get_password)</p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">
<br></p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">decrypted_key = priv_key.private_decrypt(base64.b64decode(enc_key), RSA.pkcs1</p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">
</p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">_padding)</p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">
<br></p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">I am sure there is a way to do this with PyCrypto, anyone know how to do it?</p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">
<br></p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">-Tim</p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">
<br></p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">P.S.</p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">
<br></p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">Thanks for this awsome library, especially on google appe engine!</p><p></p>