摘要: 1 class PermissiveCertificatePolicy 2 { 3 string subjectName; 4 static PermissiveCertificatePolicy currentPolicy; 5 PermissiveCertificatePolicy(string subjectName) 6 { 7 this.subjectName = subjectName; 8 ServicePointManager.ServerCertifi... 阅读全文
posted @ 2013-05-22 11:31 虫虫飞520 阅读(253) 评论(0) 推荐(0)
摘要: ----------------------源代码static void Main() { // WARNING: This code is only needed for test certificates such as those created by makecert. It is // not recommended for production code. PermissiveCertificatePolicy.Enact("CN = WIN-85QBE2LGCIQ"); // Create a client with given client endpoint 阅读全文
posted @ 2013-05-22 10:53 虫虫飞520 阅读(479) 评论(0) 推荐(0)