Received fatal alert: handshake_failure

后端 未结 3 1437
梦毁少年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:39

    The javax.net.ssl.SSLHandshakeException exception is usually thrown when the server you're trying to connect to does not have a valid certificate from an authorized CA.

    Put simply, the server you're attempting to connect to is most likely using a self-signed certificate and you have to accomodate for that in your Java code. This involves creating a custom KeyStore, etc. See this Stack Overflow answer for full implementation details.

提交回复
热议问题