I have two AssymetricAlgorithm
RSA keys that I have pulled out of a certificate that was in my keystore. One is the Public Key and the other the Private. Is there a way of getting this keypair into a BouncyCastle AsymmetricCipherKeyPair? BouncyCastle's AsymmetricCipherKeyPair
expects a public and private AsymmetricKeyParameter
however I have no way of getting my Private key without it being an instance of AssymetricAlgorithm
.
views:
94answers:
1
A:
The answer to this lies here:
http://stackoverflow.com/questions/3240222/get-private-key-from-bouncycastle-x509-certificate-c
Petey B
2010-07-14 13:51:29
I suspect a better answer lies in the Org.BouncyCastle.Security.DotNetUtilities class
GregS
2010-07-15 03:23:33