测试本地的WebApi接口时,接口是https,自己写的用httpclient测试是可以的, 用postman一直连接不了.原因正是由于https,不过postman在界面上已经给出了可能的原因和解决方法: Self-signed SSL certificates are being blocked:Fix this by turning off 'SSL certificate verification' in Settings > General 设置里把这个SSL 证书相关的选项给关掉就可
作者: zyl910 一.缘由 最近有在对接一个无证书的HTTPS接口时,总是收到"SSLHandshakeException: DHPublicKey does not comply to algorithm constraints"异常. 通过浏览器.telnet测试了接口地址,确认了TCP层是通的.看来只是HTTPS层没通. 可是试验了好几个网上找到的"绕过证书验证调HTTPS接口"的办法,均也报这个错误,无法调通接口. 后来问了很多人,才终于找到处理办法.便