Received fatal alert: handshake_failure

后端 未结 3 1417
梦毁少年i
梦毁少年i 2021-01-03 10:14

I\'m trying to send push notifications to my device using javapns library in liferay. Here\'s the code:

private void pushNo         


        
3条回答
  •  走了就别回头了
    2021-01-03 10:37

    Set the following properties on the server

    javax.net.ssl.keyStore=../keystore/keystoreFile.jks
    javax.net.ssl.keyStorePassword=yourPassword
    javax.net.ssl.trustStore=../keystore/keystoreFile.jks
    javax.net.ssl.trustStorePassword=yourPassword
    javax.net.debug=true
    

    you can create your keystore using

    keytool -genkey -alias myKeyStore -keyalg RSA -keystore /home/aniket/keystore/keystoreFile.jks
    

提交回复
热议问题