mwkirk / javapns

Test import of svn javapns repo from Google Code
3 stars 0 forks source link

InvalidCertificateChainException #139

Closed mwkirk closed 11 years ago

mwkirk commented 11 years ago

Original author: msitestf...@gmail.com (July 25, 2012 08:20:20)

What steps will reproduce the problem?

  1. JAVA pns connection initialized successfully
  2. Then call below line to check ths push notification status

List<PushedNotification> notifications = Push.alert("Test HOV notification",certificate, passwd, false, devices);

check th status return error like solution for

javapns.communication.exceptions.InvalidCertificateChainException: Invalid certificate chain (Received fatal alert: certificate_unknown)! Verify that the keystore you provided was produced according to specs...

this error return from some machine (Windows 2008 - AWS enabled)

  1. But the same apple certificate working in other machine(Windows 2003,Windows xp)

What is the expected output? What do you see instead?

Receiver iphone need to be get pushed notification. At sender iphone got the above error and receiver nothing get.

What version of the product are you using? On what operating system?

Operationg system : windows 2008

version product : JAVAPNS 2.2 and Jdk1.7.0,jre7

Please provide any additional information below.

Connection initialized from this server by using same certificate. But sending failed.

Same certificate send notification also in other machine. How it possible to failure in particular machine?

Original issue: http://code.google.com/p/javapns/issues/detail?id=139

mwkirk commented 11 years ago

From sype...@gmail.com on July 25, 2012 13:55:41 Could you try with Java 6? I've seen a few reports that SSL is behaving strangely under Java 7, but without any hard evidence...

mwkirk commented 11 years ago

From msitestf...@gmail.com on July 28, 2012 08:31:36 Thank you. This comment help to me

mwkirk commented 11 years ago

From sype...@gmail.com on August 11, 2012 18:05:22 Closing this issue report since the workaround was successful, but I also added relevant documentation about Java 7 in the Requirements documentation page.

37-int commented 10 years ago

I solved the issue in jdk 1.7 and using p12, just after changing the passwd length of p12 file greater than or equal 6. Otherwise, the following error happens: [[1] not transmitted to token 595d8..725bf javapns.communication.exceptions.InvalidCertificateChainException: Invalid certificate chain (Received fatal alert: certificate_unknown)! Verify that the keystore you provided was produced according to specs...]

mahenderk commented 9 years ago

Please add jssecacerts file to our $JAVA_HOME/lib/security/jssecacerts. It will solve the issue. Download from this link: https://github.com/notnoop/java-apns/wiki