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.