Error: "Usage error, ûgenkeypair is not a legal command" when creating Developer Certificate

by BlackBerry Development Advisor on ‎04-11-2013 09:38 AM (2,991 Views)

Problem

 

You receive the following error when creating your BlackBerry® Developer Certificate (.p12 file):

 

Usage error, ûgenkeypair is not a legal command

 

 

Cause

 

This happens when an “En Dash” character (Unicode U+2013) is used instead of the “Hyphen-Minus” (Unicode U+002D) in the command line when creating a BlackBerry Developer Certificate.  The “Hyphen-Minus” is normally the character that appears when you press the “minus” key on your keyboard.  However, some email clients and browsers can convert this character to “En Dash”.

 

 

Resolution

 

Type out the command in the command prompt window instead of copying and pasting from a browser or email client.