c#使用指定的公钥验证证书的签名

时间:2017-10-11 11:30:05

标签: c# bouncycastle x509certificate2

我有1x X509Certificate2和一个Publickey(x509certificate_1) 现在我创建了一个新的X509Certificate2并尝试验证它。

Org.BouncyCastle.X509.X509Certificate x509certificate_11 = DotNetUtilities.FromX509Certificate(x509certificate_1);
Org.BouncyCastle.X509.X509Certificate x509certificate_22 = DotNetUtilities.FromX509Certificate(x509certificate_2);
x509certificate_22.Verify(x509certificate_11.GetPublicKey());

错误:提供的公钥不是证书签名

有人可以解释一下,如何验证我的x509certificate_2到x509certificate_1?

0 个答案:

没有答案