keytool error: Incorrect AVA Format


You tried to use the blackberry-keytool tool to create a self-signed Developer Certificate. The cn value for the dname parameter contains a special character. The special character set includes:

  • Commas (,)
  • Addition symbol (+)
  • Quotation mark (")
  • Back-slash (\)
  • Angled brackets(< and >)
  • Semi-colon (;)

Possible solution

Add a back-slash in front of the special character in your command line. The following shows an excerpt from an incorrect command line:

... -dname "cn="One, two, three" ...
The following corrects the excerpt above:
... -dname "cn=One\, two\, three" ...