Get Private Key from BouncyCastle X509 Certificate? C#

前端 未结 3 1716
北荒
北荒 2021-02-05 15:51

Normally when I grab an X509Certificate2 out of my keystore I can call .PrivateKey to retrieve the cert\'s private key as an AsymmetricAlgorithm<

3条回答
  •  不知归路
    2021-02-05 16:20

    Akp = Org.BouncyCastle.Security.DotNetUtilities.GetKeyPair(this.Certificate.PrivateKey).Private;
    

提交回复
热议问题