Tuesday, May 31, 2011

Playbook Dev error: barsigner error: Certificate chain not found for: RDK

While going through the instructions on creating a signed bar file for Playbook from an Adobe Flash Professional CS5 project on Windows 7 64 bit laptop, I got an error that stumped me for quite a while:
barsigner 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
bar file in c:\rim\bin\VegasCasinoMaps.bar


The elusive solution for me was to register the RDK csj file with RIM. 

<Register with RIM>
blackberry-signer -register -csjpin <yourpasswordhere> -cskpass <yourotherpasswordhere> client-RDK-123456789.csj

Blackberry sends 2 emails with 2 different csj files and evidently I had been using the PBDT csj file and NOT the RDK csj file.  The next 2 steps worked great after getting the correct csj file registered with RIM

<DOUBLE SIGNING - FIRST STEP>
blackberry-signer -verbose -cskpass <yourpasswordhere> -keystore YOURFILE.p12 -storepass <yourpasswordhere> VegasCasinoMaps.bar RDK 
  lots of status feedback, bar signed.
 
< DOUBLE SIGNING - SECOND STEP >
blackberry-signer -keystore YOURFILE.p12 -storepass <yourpasswordhere> VegasCasinoMaps.bar author

If you would like to know more about my apps, please check out www.SmartLittleKid.com

No comments:

Post a Comment