Why am I getting an exception javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated?

前端 未结 4 1232
臣服心动
臣服心动 2021-01-30 18:01

I\'m using Apache HttpComponents HttpClient(4.0.1) to make a HTTPS call, but I\'m this exception as the response:

 javax.net.ssl.SSLPeerUnverifiedException: peer         


        
4条回答
  •  误落风尘
    2021-01-30 18:21

    Make sure that the server URL is supposed to use https instead of http. You can get this error trying to set up a secure connection to an http URL.

提交回复
热议问题