未能创建SSL/TLS安全通道,导致的通过HTTPS协议访问WCF服务
2015-08-03 17:21
531 查看
1. 由于服务器端证书是颁发给主机名,导致ipv4或ipv6无法通过HTTPS协议访问WCF服务
2. 抛出的异常为 could not establish trust relationship for the SSL/TLS secure channel with authority
3. 可以使用下面代码跳过证书检查
System.Net.ServicePointManager.ServerCertificateValidationCallback
=
((sender, certificate, chain, errors) =>
true);
2. 抛出的异常为 could not establish trust relationship for the SSL/TLS secure channel with authority
3. 可以使用下面代码跳过证书检查
System.Net.ServicePointManager.ServerCertificateValidationCallback
=
((sender, certificate, chain, errors) =>
true);
相关文章推荐
- wireshark抓包图解 TCP三次握手/四次挥手详解
- LoadRunner测试http接口代码
- iOS开发网络篇—文件的上传
- Java网络编程(二)
- HTTP请求与响应
- 传说中的网络流24题
- 优化Linux下的内核TCP参数来提高服务器负载能力
- Http请求与响应
- 封装网络请求
- 在linux中如何做http YUM
- 用ImageLoader下载网络图片
- 用ImageLoader下载网络图片
- 怎样快速读完一本网络小说
- 使用 libevent 和 libev 提高网络应用性能
- 【网络流】 HDOJ 3879 Base Station
- 转自http://bbs.pfan.cn/
- 提升linux下tcp服务器并发连接数限制
- 计算机网络(一)
- 网络号与主机号的计算以及子网的划分
- 第四周第一天(【URL(openStream()】【基于UDP的网络通信】)