BouncyCastle PrivateKey To X509Certificate2 PrivateKey

后端 未结 4 1973
旧时难觅i
旧时难觅i 2021-01-01 22:38

I create a certificate using BouncyCastle

        var keypairgen = new RsaKeyPairGenerator();
        keypairgen.Init(new KeyGenerationParameters(new Secure         


        
4条回答
  •  自闭症患者
    2021-01-01 23:08

    If you look at the links from this question, you should be able to use something similar to DotNetUtilities.ToRSA(...) and put its return value into the X509Certificate2's PrivateKey.

提交回复
热议问题