本文介绍了使用X509Certificate类和私钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
string certificatePath = "cert.p12";
string certificatePassword = "testpasswd";
X509Certificate clientCertificate = new X509Certificate2(certificatePath, certificatePassword);
m_webService = new TestApp.WebReference.Features();
m_webService.ClientCertificates.Add(clientCertificate);
I find references to
string certFile = "C:\\certfile.cer";
X509Certificate certificate = X509Certificate.CreateFromCertFile(certFile);
But, how do I associate the private key???
推荐答案
这篇关于使用X509Certificate类和私钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!