I have a kwm (WebMoney key) file. I use related Key Extractor to extract the RSA Key.
Extracted data has following XML structure:
<RSAKeyValue>
<Modulus>modulus data</Modulus>
<D>more data</D>
</RSAKeyValue>
I need to export PrivateKey from this XML so I can use OpenSSL to sign data using that PrivateKey
I found a .Net solution which shows how to extract private key. But I failed to achieve this in python OpenSSL
How can I obtain PrivateKey data with python OpenSSL?
Note: I already use OpenSSL to load PrivateKey from a pfx file using OpenSSL.crypto.load_pkcs12(<pfx_file>).get_privatekey() But I fail to extract PrivateKey from above XML data.