Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Given final block not properly padded exception on initializeConnection #40

Closed
GoogleCodeExporter opened this issue Apr 27, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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

  • Changed state: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant