Paypal SSLHandshakeException

前端 未结 1 939
死守一世寂寞
死守一世寂寞 2021-01-07 13:32

I am implementing paypal silent post. This was working at one time but now it appears to be having issues. The error I am getting:

javax.net.ssl.SSLHandshake         


        
相关标签:
1条回答
  • 2021-01-07 14:29

    One solution I found for this is:

    urlCon.setHostnameVerifier(new HostnameVerifier() {
        @Override
        public boolean verify(String hostname, SSLSession session){
            return true;
        }
    });
    

    If it doesn't work, try using HttpsURLConnection instead of URLConnection.

    0 讨论(0)
提交回复
热议问题