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

Native Development

Reply
New Contributor
Posts: 3
Registered: ‎11-05-2012
My Device: playbook os 2
My Carrier: I don't have one

blackberry-keytool - blank spaces in company name

When using my macbook to try to use blackberry-keytool the -dname param "cn=aaaaa bbbbbb ccccccc" gives an error 

 

 

Error: Usage error, bbbbbb is not a legal command

 

I've tried using \c  ,  \  ,  %20 to attempt to escape them  

 

and I've tried  "cn='aaaaa bbbbbb ccccccc'"   also  "cn="aaaaa bbbbbb ccccccc""

 

and they all, always give me the error

 

Error: Invalid keyword "?CN"

 

the cn I'm entering is the correct company name, got new keys from BB just to make sure I hadn't stuffed up

 

Thanks

 

 

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: blackberry-keytool - blank spaces in company name

I'm not using a Mac, but for what it's worth when I did this on Windows (over a year ago) I was able to use "cn=Company Name" without an problem (i.e. double quotation marks around the combined cn= and name with space).

What about using single quotation marks, surrounding double? ' " cn=Company Name" ' (where I've inserted extra spaces to make it more obvious but which you obviously wouldn't).

If that doesn't work, I'd suggest checking which blackberry-keytool you're actually invoking, and whether it is a poorly written shell script which then invokes the underlying Java utility. If that's so, you might be able to just call the Java one the same way yourself, but directly from the command line, and it would likely work with your original approach.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Highlighted
New Contributor
Posts: 3
Registered: ‎11-05-2012
My Device: playbook os 2
My Carrier: I don't have one

Re: blackberry-keytool - blank spaces in company name

WOW that was quick,  Thanks

 

Sussed it:

 

I put single quotes instead of double   i.e.  -dname 'cn=aaaaaa bbbbbb ccccccc'

 

 

I don't know why it worked cos all the tutorials I have seen use "  NOT  '

 

 

Thanks for being so quick to help

 

Stephen