Getting PrivateKey from module A and D in RSAKey XML data

I have kwm ( WebMoney key ). I use the associated Key Extractor to extract the RSA key.

The extracted data has the following XML structure:

<RSAKeyValue>
    <Modulus>modulus data</Modulus>
    <D>more data</D>
</RSAKeyValue> 

I need to export PrivateKey from this XML so that I can use OpenSSLto sign data using this PrivateKey

I have found a solution . Net , which shows how to extract the private key. But I could not achieve this inpython OpenSSL

How can I get PrivateKey data using python OpenSSL?

Note. I am already using OpenSSLPrivateKey to load from a file pfxusing OpenSSL.crypto.load_pkcs12(<pfx_file>).get_privatekey()But I cannot extract PrivateKey from the XML data above.

+3
1

, OpenSSL.crypto.PKey . d RSA. , RSA. , , pyOpenSSL.

pyOpenSSL RSA PEM. d. ( , OpenSSL .)

cryptography, pyOpenSSL pyOpenSSL 0.14 -, RSA.

+1

All Articles