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
Developer
Posts: 126
Registered: ‎06-25-2013
My Device: Z10
My Carrier: none

Error: Keystore load: Unexpected tag found: [Private 30]

For signing app in bb10 from command line

 

In bb 10.1.0.4828  it is throwing this error

 

Error: Keystore load: Unexpected tag found: [Private 30] != Sequence [Decoding class:
com.trustpoint.pkcs.pkcs12.PFX] Exception in thread "main" java.lang.RuntimeException: Keystore load: Unexpected tag found: [Private 30] != Sequence [Decoding class: com.trustpoint .pkcs.pkcs12.PFX] at net.rim.device.codesigning.barsigner.BarSigner.for(Unknown Source) at net.rim.device.codesigning.barsigner.BarSigner.if(Unknown Source) at net.rim.device.codesigning.barsigner.BarSigner.main(Unknown Source)

 



In Blackberry 10.2.0.1155

 

Error: Keystore load: Unexpected tag found: [Private 30] != Sequence [Decoding class: com.trustpoint.pkcs.pkcs12.PFX]

 

I am executing this command

 

blackberry-signer -storepass <storepassword> <path of csk file>

 

What is the issue, am i doing it wrong??

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

Re: Error: Keystore load: Unexpected tag found: [Private 30]

You specify the BAR file, not your CSK file.  If the code signing files are in their default location they'll be found by blackberry-signer.  The command should be:

 

blackberry-signer -storepass <storepassword> <path of BAR file>

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
Developer
Posts: 126
Registered: ‎06-25-2013
My Device: Z10
My Carrier: none

Re: Error: Keystore load: Unexpected tag found: [Private 30]

[ Edited ]

I dont have barsigner.csk or barsigner.db files in the default location. i need to create it. 

 

For that i downloaded the bbitoken.csk and then run this command.

 

Is there any other way to do it.

 

I am using this version Blackberry 10 Native SDK 10.1.0.4828

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

Re: Error: Keystore load: Unexpected tag found: [Private 30]

bbidtoken.csk cannot be used to create barsigner.csk or barsigner.db.  The first is a new way of signing using your BlackBerry ID account that requires a 10.2+ Gold SDK.  To sign in 10.1, use the previous method, which would be the second option in the order form.

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