Closed GoogleCodeExporter closed 9 years ago
We are also facing the same problem -
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure.
Any solution will be helpful.
Thank You.
Original comment by isenages...@gmail.com
on 28 Jun 2012 at 5:46
That exception is typical of an invalid keystore or certificates. If you are
absolutely sure that you did ALL steps required for producing your keystore,
WITHOUT cutting corners or assuming something that was not written, please
provide the precise list of steps you followed so that more investigation can
be done. Thank you.
Original comment by sype...@gmail.com
on 2 Jul 2012 at 9:16
Original comment by sype...@gmail.com
on 2 Jul 2012 at 10:33
We had an issue with the certificate. We're still a little unsure of what the
issue was, but after switching to another certificate that appears to be the
same everything works. Also, make sure to check the permissions on the
certificate. We had issues with the permissions not transferring correctly in
addition to what permissions java pns is being running with.
Original comment by jdsamuel...@gmail.com
on 3 Jul 2012 at 2:41
Hi All,
I am facing the same issue, and i have followed following steps to produce my
certificate and key,
http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part
-12
Now the thing is that, in above link they provided a PHP sample which works
perfectly and i can get the Notification on my Device, but when i try to
implement it through JavaPNs (the simple one) it throws above mentioned error.
One more thing, when i call - verifyKeystore("<filename>.p12", "<password>",
true); - it throws,
"javapns.communication.exceptions.KeystoreException: Keystore does not contain
any valid certificate"
Which is quite surprising as the same certificate works perfectly with PHP
sample.
I am using JavaPNs 2.2, in Win 7 machine with JDK jdk1.6.0_05.
Can anyone please help me or guide me what to do in this case? I am struggling
with this from last 3 days. Also do i have to Import the certificates with
"keytool"? (Its not specified anywhere in JavaPNS).
Original comment by darshwit...@gmail.com
on 17 Jul 2012 at 9:07
Sorry to All,
I found the problem. Its my certificate. Actually from Keychain Access in
Apple, there are 2 certificates installed with the same url, and because that
the confusion occurred. I have remove the one not used anymore and created a
.p12 from the one which the application is using, and Bingo it starts working.
:-).
Thanks for this wonderful Library and Tutorials...
Original comment by darshwit...@gmail.com
on 17 Jul 2012 at 1:32
Closing for lack of feedback from original poster, and because other posters
confirmed having resolved their issues.
Original comment by sype...@gmail.com
on 17 Jul 2012 at 6:25
I am a new iOS developer and have the same issue before.
I finally find the problem is due to the p12 certificate. We should not use the
private key p12 file, instead we should generate a p12 from your private key
and the cert download from Apple.
Please execute the following OpenSSL command to get the correct p12 file:
developer_identity.cer <= download from Apple
mykey.p12 <= Your private key
openssl x509 -in developer_identity.cer -inform DER -out developer_identity.pem
-outform PEM
openssl pkcs12 -nocerts -in mykey.p12 -out mykey.pem
openssl pkcs12 -export -inkey mykey.pem -in developer_identity.pem -out
iphone_dev.p12
After that, you should use iphone_dev.p12 to communicate with apple server.
Original comment by fongyat...@gmail.com
on 30 Sep 2012 at 7:32
I had the same issue as described in this post and I tested the solution
described in #8 and it worked! Thank you!
Original comment by martinli...@gmail.com
on 19 Mar 2013 at 11:24
Original issue reported on code.google.com by
ch...@kipsu.com
on 9 Jun 2012 at 11:07