有什麼辦法可以將Org.BouncyCastle.X509.X509Certificate
轉換成System.Security.Cryptography.X509Certificates.X509Certificate2
?如何將BouncyCastle X509Certificate轉換爲X509Certificate2?
反向操作很簡單,結合Org.BouncyCastle.X509.X509CertificateParser
與 System.Security.Cryptography.X509Certificates.X509Certificate2.Export()
。
這太奇怪了... OP要求將*轉換爲X509Certificate2 *的方法,但是轉換爲*「X509Certificate」*。並且糾正這一點,所有這些仍然是kaptux公認的答案中已經說過的。 – mkl