SSL connection failing for Java 7

前端 未结 4 2145
南旧
南旧 2020-12-29 23:49

I am attempting to create an SSL connection to a remote server using Java 7 and I\'m receiving the following exception:

javax.net.ssl.SSLHandshakeException:          


        
4条回答
  •  忘掉有多难
    2020-12-30 00:04

    did you include the truststore when you execute the client?

    java -Djavax.net.ssl.trustStore=${resources}/localhost.truststore \
    -Djavax.net.ssl.trustStorePassword=TRUSTSTORE_PASSWORD -jar client.jar com.acme.RunClient
    

提交回复
热议问题