摘要: //使用X509证书加密解密以及生成证书 #region 生成证书 /// /// 根据指定的证书名和makecert全路径生成证书(包含公钥和私钥,并保存在MY存储区) /// /// /// /// public static bool CreateCertWithPrivateKey(string subjectName, string makecertPath) { //string makecertPath = "E:\\... 阅读全文
posted @ 2014-03-27 09:36 batter152 阅读(1205) 评论(0) 推荐(1) 编辑
摘要: C#代码调用webservice设置客户端的证书设置服务器证书NameSpace.PaExportWebserviceProviderClient client2 = new NameSpace.PaExportWebserviceProviderClient();client2.ClientCredentials.ClientCertificate.SetCertificate(StoreLocation.LocalMachine, StoreName.My, X509FindType.FindBySubjectName, "certClientName");client 阅读全文
posted @ 2014-03-27 09:33 batter152 阅读(1628) 评论(0) 推荐(1) 编辑