0

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.

4

2 に答える 2

1

これに対する答えはここにあります:

BouncyCastle X509 証明書から秘密鍵を取得しますか? C#

于 2010-07-14T13:51:29.907 に答える