Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Testing and Deployment

Reply
New Member
Posts: 1
Registered: ‎08-22-2011
My Device: Playbook
My Carrier: NA

Creating a keypair returns Javax.crypto.BadPaddingException

I am attempting to get setup to sign Playbook apps (debug tokens for now).  When I try to create the keypair I get back  the following:

 

keytoo error: java.io.IOException: failed to decrypt safe contents array: javax.crypto.BadPaddingException: Given final block not properly padded

 

The command-line looked like "blackberry-keytool -genkeypair -keystore sigtool.p12 -storepass "12345" -dname "cn=my company" -alias author"

 

I am currently using Java SE build 1.7.0.0-b147.

 

Thanks for any help.

 

Larry

Highlighted
BlackBerry Development Advisor
Posts: 15,696
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Creating a keypair returns Javax.crypto.BadPaddingException

Do you have an existing sigtool.p12 file that was possibly created with invalid information?  If so, please delete if first.

 

You are also missing an opening quote beside author.

 

Instead of using the command line, you could use this tool to configure your signing keys.

 

BlackBerry Tablet OS Graphical Aid

http://supportforums.blackberry.com/t5/Testing-and-Deployment/BlackBerry-Tablet-OS-Graphical-Aid/ta-...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker