sandeepnegi / javapns

Automatically exported from code.google.com/p/javapns
0 stars 0 forks source link

InvalidCertificateChainException #139

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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)

3. 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 reported on code.google.com by msitestf...@gmail.com on 25 Jul 2012 at 8:20

GoogleCodeExporter commented 8 years ago
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...

Original comment by sype...@gmail.com on 25 Jul 2012 at 1:55

GoogleCodeExporter commented 8 years ago
Thank you. This comment help to me

Original comment by msitestf...@gmail.com on 28 Jul 2012 at 8:31

GoogleCodeExporter commented 8 years ago
Closing this issue report since the workaround was successful, but I also added 
relevant documentation about Java 7 in the Requirements documentation page.

Original comment by sype...@gmail.com on 11 Aug 2012 at 6:05