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

Android™ Development

Reply
New Contributor
Posts: 2
Registered: ‎08-17-2013
My Device: BB z10, Playbook. Developer
My Carrier: none
Accepted Solution

Signing apps from a new machine & Blackberry ID

[ Edited ]

 I backed up ALL the things from my old machine and copied to a new machine. And am running ONLY below command from my new machine which is giving following error. This command is working fine from my old machine but NOT from my new machine. 

 

batchbar-signer /workspace/blackberry/bars /workspace/blackberry/certs/$company.p12 $pin -t /workspace/blackberry/bars

Error: Certificate chain not found for: RDK.  RDK must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.

 

Do I need to do something else before running the above command? Do I need to run also

blackberry-signer -register -csjpin $pin -storepass $pin /workspace/blackberry/certs/$rdk /workspace/blackberry/certs/$pbdt

Does this command register the computer?I have many apps on sale already which were signed from my old machine. So I do not want to risk loosing the ability to update those apps by running any commands am not sure about. Please help.

 

 

Also I read about Blackberry ID and downloaded a bbidtoken.csk and ran below command from old and new machines.

 blackberry-signer -linkcsk -cskpass $pin

 

old machine's response: Info: CSK successfully linked to BBID

new machine's response:  "Error: Key PBDT is not registered"

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

Re: Signing apps from a new machine & Blackberry ID

You only need to do the -linkcsk command once.  Are you using the 10.2 release on both computers?  Signing with BlackBerry ID is only supported with the new SDKs released last week.

 

Did you save the BlackBerry ID token in the appropriate folder?

 

  • Windows® XP:  %HOMEPATH%\Local Settings\Application Data\Research In Motion
  • Windows Vista®, Windows 7® and Windows 8®:  %HOMEPATH%\AppData\Local\Research In Motion
  • Mac OS:  ~/Library/Research In Motion
  • Unix / Linux:  ~/.rim
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
Highlighted
New Contributor
Posts: 2
Registered: ‎08-17-2013
My Device: BB z10, Playbook. Developer
My Carrier: none

Re: Signing apps from a new machine & Blackberry ID

Ok. Thanks. Yes all was in order already. I was trying to run linkcsk in new computer also. After I ran linkcsk from old machine, I could sign apps from new machine. Thanks.

Contributor
Posts: 18
Registered: ‎05-01-2013
My Device: BlackBerry Z10
My Carrier: NA

Re: Signing apps from a new machine & Blackberry ID

[ Edited ]

I have this exact problem now. I can sign with the code signing key without any issue. I followed the instructions here :  http://devblog.blackberry.com/2013/08/code-signing-keys-be-gone-welcome-blackberry-id/#more-15915

 

The error is : Key PBDT is not registered

 

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

Re: Signing apps from a new machine & Blackberry ID


namanhams wrote:

I have this exact problem now. I can sign with the code signing key without any issue. I followed the instructions here :  http://devblog.blackberry.com/2013/08/code-signing-keys-be-gone-welcome-blackberry-id/#more-15915

 

The error is : Key PBDT is not registered

 


This occurs if you have only installed the RDK key but not the PBDT key, meaning you installed 1 of the 2 CSJ files from your original key order.  Install the other and you should be able to link.

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
Contributor
Posts: 18
Registered: ‎05-01-2013
My Device: BlackBerry Z10
My Carrier: NA

Re: Signing apps from a new machine & Blackberry ID

You are rite, because i never needed to use the PBDT file previously, and everything still works fine so far.

Can you tell me how to install the other CSJ file ? Thanks.

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

Re: Signing apps from a new machine & Blackberry ID

You can register it using this command:

 

blackberry-signer -register -csjpin <PIN> 
    -cskpass <csk password> <CSJ_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
Contributor
Posts: 18
Registered: ‎05-01-2013
My Device: BlackBerry Z10
My Carrier: NA

Re: Signing apps from a new machine & Blackberry ID

Now it says "Info: CSK successfully linked to BBID". 

Thanks a lot !