Code signing request failed because Certificate chain not found for: [File]

by Retired on ‎02-23-2011 01:28 PM - edited on ‎03-11-2011 11:10 AM by Retired (1,464 Views)

Summary

 

This article applies to the following:

  • BlackBerry® Tablet OS SDK for Adobe® AIR®
  • BlackBerry® WebWorks™ SDK for  the BlackBerry® Tablet OS


Problem

 

 

The following error is received when attempting to sign your application from the command-line.

 

barsigner error: Certificate chain not found for:[File].  [File] must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.

 

 

Cause 1: If [File] is RDK

 

This means that the signature tool cannot find the registered RDK (RIM® code signing key) on your system. Note that keys are installed in a directory based on the current logged-in user; the registration file location id dependent on operating system:

 

  • Windows® XP:  %HOMEPATH%\Local Settings\Application Data\Research In Motion
  • Windows Vista® and Windows® 7:  %HOMEPATH%\AppData\Local\Research In Motion
  • Mac OS:  ~/Library/Research In Motion

 

Resolution

 

Search your computer for a valid barsigner.db file and place it in the correct directory (listed above). If one cannot be found then you will need to order a new set of keys from here.

 

Cause 2: If [File] is the .bar file

 

One or more command-line parameters are missing from the signing request command. Missing the "-storepass" switch is the minimum requirement for receiving this error.

 

Resolution

Check that all necessary parameters/switches are specified:

 

blackberry-signer -verbose -cskpass <your CSK password> 
-keystore <your P12 file> -storepass <your P12 file password>
<BAR_file.bar> RDK