coosamatt / javapns

javapns
0 stars 0 forks source link

Given final block not properly padded exception on initializeConnection #40

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

While trying to initializeConnection on the PushManager, I get the following 
exception:

java.io.IOException: failed to decrypt safe contents entry: 
javax.crypto.BadPaddingException: Given final block not properly padded
    at com.sun.net.ssl.internal.ssl.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1275)
    at java.security.KeyStore.load(KeyStore.java:1150)
    at javapns.back.SSLConnectionHelper.<init>(Unknown Source)
    at javapns.back.PushNotificationManager.initializeConnection(Unknown Source)

The password is correct as I've verified it with openssl.

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

I would love to see the connection initialized :)

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

javapns 1.6.2 jdk1.5, windows XP, trying to run it from the JUnit test at this 
moment...

Original issue reported on code.google.com by lech.mig...@gmail.com on 14 Jan 2011 at 4:07

GoogleCodeExporter commented 8 years ago
Sounds like the SSL certificate isn't loading properly... what happens when you 
enable ssl certificate logging as per:
http://code.google.com/p/javapns/wiki/Tips

Original comment by idbill.p...@gmail.com on 19 Jan 2011 at 10:15

GoogleCodeExporter commented 8 years ago
Error is typical of a keystore password issue, and is actually reported as such 
in javapns 2.0.  Old issue with no recent update, so closing.  Please feel free 
to re-open if the issue is still valid.

Original comment by sype...@gmail.com on 7 Sep 2011 at 3:39