How to solve javax.net.ssl.SSLHandshakeException Error?

前端 未结 6 501
伪装坚强ぢ
伪装坚强ぢ 2020-11-22 16:57

I connected with VPN to setup the inventory API to get product list and it works fine. Once I get the result from the web-service and i bind to UI. And also I integrated Pay

6条回答
  •  萌比男神i
    2020-11-22 17:42

    SSLHandshakeException can be resolved 2 ways.

    1. Incorporating SSL

      • Get the SSL (by asking the source system administrator, can also be downloaded by openssl command, or any browsers downloads the certificates)

      • Add the certificate into truststore (cacerts) located at JRE/lib/security

      • provide the truststore location in vm arguments as "-Djavax.net.ssl.trustStore="

    2. Ignoring SSL

      For this #2, please visit my other answer on another stackoverflow website: How to ingore SSL verification Ignore SSL Certificate Errors with Java

提交回复
热议问题