且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android ssl:javax.net.ssl.SSLPeerUnverifiedException:没有对等证书(再次)

更新时间:2023-12-03 14:07:28

经过大量的挖掘和实验,我终于意识到我使用的 url 使用了硬编码的 80 端口而不是默认的 443.哑哑.

After piles of digging and experimentation, I finally realized that the url I was using had hard coded port 80 instead of defaulting to 443. Dumb dumb dumb.

这个问题的答案使用 HttpClient over HTTPS 信任所有证书 对我理解 SSL 有很大帮助.

The answer to this question Trusting all certificates using HttpClient over HTTPS helped tremendously for my understanding of SSL.