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
Developer
burakk
Posts: 149
Registered: ‎04-23-2011
My Device: BlackBerry 9700 Bold
Accepted Solution

Can't Create Debug Token, So Frustrated

[ Edited ]

Yesterday I bought a brand new Z10 device with high hopes to build and test multimedia apps on the device, but I have struggled whole day so far without success to create a debug token. I downloaded the latest IDE, created a BlackBerry ID token, but getting an error while creating the token. What strange is, there's no explanation what exactly fails. 

 

When trying with the command-line tools:

 

C:\Users\Burak\AppData\Local\Research In Motion>blackberry-debugtokenrequest -cskpass mypassword -keystore author.p12 -deviceID 0x24F1FC57 -storepass maypassword buraktoken1.bar
Error: Not yet registered to request debug tokens

 

OK, trying to register:

 

C:\Users\Burak\AppData\Local\Research In Motion>blackberry-signer -storepass mypassword bbidtoken.csk
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.

 

????

 

I've attached two screenshot that might be helpful...

 

3.png

 

and

 

 

4.png

Thanks in advance. Best Regards

Developer
burakk
Posts: 149
Registered: ‎04-23-2011
My Device: BlackBerry 9700 Bold

Re: Can't Create Debug Token, So Frustrated

After noticing that the barsigner file has 0 length, I restored my code signing information, and now have the following certificate:

 

5.png

 

and now have the following error:

 

C:\Users\Burak\AppData\Local\Research In Motion>blackberry-debugtokenrequest -cskpass mypassword -keystore author.p12 -deviceID 0x24F1FC57 -storepass mypassword buraktoken1.bar

 

Error: null

Error: null

 


I'd really appreciate any help...

 

 

BlackBerry Development Advisor
MSohm
Posts: 14,859
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Can't Create Debug Token, So Frustrated

What OS are you using?  Which version of BlackBerry Native SDK are you using?  Do you see Error: Null when using the NDK GUI to create the debug token?   Is the same error shown if you execute that command from a command line?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
burakk
Posts: 149
Registered: ‎04-23-2011
My Device: BlackBerry 9700 Bold

Re: Can't Create Debug Token, So Frustrated

I am using

 

- Windows 8,

 

- QNX® Momentics® IDE for BlackBerry® 10 Native SDK

Version: 10.2.1 Build id: v201308081807,

 

- BlackBerry Native SDK 10.1

 

 

No, I don't see any error in the GUI:

 

6.png

 

but I am getting:

 

Error: null

Error: null

 

when executing from the command line.

BlackBerry Development Advisor
MSohm
Posts: 14,859
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Can't Create Debug Token, So Frustrated

You need to use the gold BlackBerry 10.2 SDK.  BlackBerry ID tokens are not supported in 10.1 or earlier versions of the SDK.  You can install it by going to the Help menu and choosing Update API Levels.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
burakk
Posts: 149
Registered: ‎04-23-2011
My Device: BlackBerry 9700 Bold

Re: Can't Create Debug Token, So Frustrated

I've installed 10.2, but again no success.

 

I've run:

 

 

bbndk-env_10_2_0_1155.bat

 

and then 

 

C:\Users\Burak\AppData\Local\Research In Motion>blackberry-debugtokenrequest -cskpass password -keystore author.p12 -deviceID 0x24F1FC57 -storepass password buraktoken1.bar

 

It runs and completes without an error, but there's no output (buraktoken1.bar). In fact, I can see the buraktoken1.bar very briefly in the explorer but it disappears.

 

I have 2 csk files in C:\Users\Burak\AppData\Local\Research In Motion, barsigner.csk and bbidtoken.csk

 

 

 

Developer
burakk
Posts: 149
Registered: ‎04-23-2011
My Device: BlackBerry 9700 Bold

Re: Can't Create Debug Token, So Frustrated

I have uninstalled everything, cleared c:\users\burak\appdata\local\research in motion, re-installed SDK 10.2, got a token for my BlackBerry ID, and still got error when creating a debug token (in the GUI). Again, barsigner.db has zero length.

 

I am very frustrated. Maybe I am not a smart guy, but spending more than a day for a debug token, and still without success makes me mad. 

 

I need urgent help.

Developer
burakk
Posts: 149
Registered: ‎04-23-2011
My Device: BlackBerry 9700 Bold

Re: Can't Create Debug Token, So Frustrated

I restored old keys (for another BlackBerry account), copied all the files over, got the BlackBerry ID token, and retried.

 

It is strange that the file is created briefly and then immediately deleted:

 

 

 

C:\Users\Burak\AppData\Local\Research In Motion>blackberry-debugtokenrequest -bbidtoken bbidtoken.csk -storepass password -deviceID 0x24F1FC57 C:\bur\dt.bar

 

Has this process been easy for all of you guys? Is it only me who cannot make a debug token?

BlackBerry Development Advisor
MSohm
Posts: 14,859
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Can't Create Debug Token, So Frustrated

[ Edited ]

Please add the -verbose option to the blackberry-debugtokenrequest command and post the output.

 

Edit: Just noticed there is one typo in you command, -deviceID should be -device-id.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
burakk
Posts: 149
Registered: ‎04-23-2011
My Device: BlackBerry 9700 Bold

Re: Can't Create Debug Token, So Frustrated

using -device-id gives:

 

Error: Illegal option: -device-id

 

Running

 

C:\Users\Burak\AppData\Local\Research In Motion>blackberry-debugtokenrequest -verbose -bbidtoken bbidtoken.csk -storepass XXXXX -deviceid 0x24F1FC57 dt.bar

 

outputs:

 

Developer Certificate TBS =
30 81 cc a0 03 02 01 02 02 11 00 db d2 4f dd a5
ad b9 55 28 f1 21 94 49 97 ac d2 30 0c 06 08 2a
86 48 ce 3d 04 03 04 05 00 30 14 31 12 30 10 06
03 55 04 03 0c 09 42 75 72 61 6e 73 6f 66 74 30
1e 17 0d 31 33 30 38 32 30 31 32 33 32 30 31 5a
17 0d 33 33 30 38 31 35 31 32 33 32 30 31 5a 30
14 31 12 30 10 06 03 55 04 03 0c 09 42 75 72 61
6e 73 6f 66 74 30 58 30 10 06 07 2a 86 48 ce 3d
02 01 06 05 2b 81 04 00 23 03 44 00 03 01 5a 1e
b6 1d 75 2d f9 fa b1 e8 20 f2 89 5d 41 a4 4c 5d
1a 8f bf 63 df bd 0b 90 79 e5 2d 68 9f a1 60 be
ec 0e a9 53 fe 33 de 7f b0 c7 83 76 13 1c bb aa
53 64 14 dc 69 93 05 16 21 16 8e 48 f6 ba 5a
Developer Certificate TBS Digest =
78 57 b2 cc 59 b8 65 f6 0f 75 54 d6 8d e4 a9 72
86 2e 25 b7 7c 06 97 05 25 6d 96 ed e5 5a 7e ce
78 55 cc 66 1c fd 1e 16 9d d4 9d b1 d8 5c d9 71
fc 2a b7 6d ef 86 ca b5 68 3a 0d af 62 a8 6c 04
Developer Certificate TBS Encoded Digest =
65 46 65 79 7a 46 6d 34 5a 66 59 50 64 56 54 57
6a 65 53 70 63 6f 59 75 4a 62 64 38 42 70 63 46
4a 57 32 57 37 65 56 61 66 73 35 34 56 63 78 6d
48 50 30 65 46 70 33 55 6e 62 48 59 58 4e 6c 78
5f 43 71 33 62 65 2d 47 79 72 56 6f 4f 67 32 76
59 71 68 73 42 41
Requesting signature from server...
HMAC =
a7 05 73 6e 32 7f ea 5f 33 01 ac 0b d7 91 45 83
d6 d8 99 ba 95 75 a1 57 e2 ce fd 66 bc 61 fd a7
Properties of request := [
Version = 2
Command = Signature Request
SignerID = PBDT
Token = AQ:FqOC40Q7uhQZBwNbLAeLQSyYTFqSRQKDOnt8Ww22k10:cMXEUjAlUoX_80YqjfB3UA:
ZYalHF1L5nY-7eJRE0ZXmNkGDTOQp9Qv6i7lkaQHDkMnPlUgTK0eSfpw4lPK3SOQg5PY-ZkruheJ2l
kyovKAutbln4jlGCVD8RQpmh33Kw99qgFzyG8M3vPrL_CaAzRMJI7nV506d1A3KRItPnkfYDskiMYx
kuJ9MHfoXWQKfUbhcw5CZPyYtkjIA-eLjec6Wn5swbHl2MCpRaYsF5HEVNCyvhIUQyKrf8_ABQdFCt
pOqofr9h_b4inWPuprpMVQm16dWf2heXZwk2pBeA7sT8uoQ7MzOcb5wmNB2bvVPjxw9WlASGMQdltv
T8kbHw6U0xQ6YClmusBuYaupXq50xY96BbA7HLko2Kelpo-AiGHfO9S3FB2iCu3OIpRN6U-tSXKqcd
9diBUatpEiuXjah1q9Gb6yAGATrtgJxi3QmdmmYYBvGhJIlKQorSOrUbeAEl7XG7E3H6dTWdADGIYw
qkhVY5ej4
MF =
51 58 4a 6a 61 47 6c 32 5a 53 31 4e 59 57 35 70
5a 6d 56 7a 64 43 31 57 5a 58 4a 7a 61 57 39 75
4f 69 41 78 4c 6a 49 4e 43 6b 46 79 59 32 68 70
64 6d 55 74 51 33 4a 6c 59 58 52 6c 5a 43 31 43
65 54 6f 67 51 6d 78 68 59 32 74 43 5a 58 4a 79
65 53 42 43 51 56 49 67 55 47 46 6a 61 32 46 6e
5a 58 49 67 64 6a 45 75 4e 69 34 79 44 51 6f 4e
43 6c 42 68 59 32 74 68 5a 32 55 74 51 58 56 30
61 47 39 79 4f 69 42 43 64 58 4a 68 62 6e 4e 76
5a 6e 51 4e 43 6c 42 68 59 32 74 68 5a 32 55 74
51 58 56 30 61 47 39 79 4c 55 6c 6b 4f 69 42 69
59 6d 4a 69 59 6d 4a 69 59 6d 4a 69 59 6d 4a 69
59 6d 4a 69 59 6d 4a 69 59 6d 4a 69 59 6d 4a 69
59 6d 49 4e 43 6c 42 68 59 32 74 68 5a 32 55 74
54 6d 46 74 5a 54 6f 67 5a 47 56 69 64 57 63 75
64 47 39 72 5a 57 34 4e 43 6c 42 68 59 32 74 68
5a 32 55 74 53 57 51 36 49 47 4e 6a 59 32 4e 6a
59 32 4e 6a 59 32 4e 6a 59 32 4e 6a 59 32 4e 6a
59 32 4e 6a 59 32 4e 6a 59 32 4e 6a 59 77 30 4b
55 47 46 6a 61 32 46 6e 5a 53 31 57 5a 58 4a 7a
61 57 39 75 4f 69 41 77 4c 6a 41 75 4d 43 34 78
44 51 70 51 59 57 4e 72 59 57 64 6c 4c 56 5a 6c
63 6e 4e 70 62 32 34 74 53 57 51 36 49 47 52 6b
5a 47 52 6b 5a 47 52 6b 5a 47 52 6b 5a 47 52 6b
5a 47 52 6b 5a 47 52 6b 5a 47 52 6b 5a 47 52 6b
5a 41 30 4b 55 47 46 6a 61 32 46 6e 5a 53 31 55
65 58 42 6c 4f 69 42 6b 5a 57 4a 31 5a 79 31 30
62 32 74 6c 62 67 30 4b 55 47 46 6a 61 32 46 6e
5a 53 31 4a 63 33 4e 31 5a 53 31 45 59 58 52 6c
4f 69 41 79 4d 44 45 78 4c 54 41 78 4c 54 41 78
56 44 41 77 4f 6a 41 77 4f 6a 41 77 57 67 30 4b
55 47 46 6a 61 32 46 6e 5a 53 31 42 64 58 52 6f
62 33 49 74 51 32 56 79 64 47 6c 6d 61 57 4e 68
64 47 55 74 53 47 46 7a 61 44 6f 67 5a 55 5a 6c
65 58 70 47 62 54 52 61 5a 6c 6c 51 5a 46 5a 55
56 32 70 6c 55 33 42 6a 62 31 6c 31 53 6d 4a 6b
4f 45 4a 77 59 30 5a 4b 56 7a 4a 58 4e 32 56 57
59 57 5a 7a 4e 54 52 57 59 33 68 74 53 46 41 77
5a 55 5a 77 4d 31 56 75 59 6b 68 5a 57 45 35 73
65 46 39 44 63 54 4e 69 5a 53 31 48 65 58 4a 57
62 30 39 6e 4d 6e 5a 5a 63 57 68 7a 51 6b 45 4e
43 67 30 4b 52 47 56 69 64 57 63 74 56 47 39 72
5a 57 34 74 55 33 6c 7a 64 47 56 74 4c 55 46 6a
64 47 6c 76 62 6e 4d 36 49 47 46 6a 64 47 6c 76
62 67 30 4b 52 47 56 69 64 57 63 74 56 47 39 72
5a 57 34 74 52 58 68 77 61 58 4a 35 4c 55 52 68
64 47 55 36 49 44 49 77 4d 54 45 74 4d 44 45 74
4d 44 46 55 4d 44 41 36 4d 44 41 36 4d 44 42 61
44 51 70 45 5a 57 4a 31 5a 79 31 55 62 32 74 6c
62 69 31 45 5a 58 5a 70 59 32 55 74 53 57 51 36
49 44 59 78 4f 54 67 7a 4f 44 55 31 4d 51 30 4b
44 51 6f 3d
SF =
55 32 6c 6e 62 6d 46 30 64 58 4a 6c 4c 56 5a 6c
63 6e 4e 70 62 32 34 36 49 44 45 75 4d 41 30 4b
55 30 68 42 4c 54 55 78 4d 69 31 45 61 57 64 6c
63 33 51 74 54 57 46 75 61 57 5a 6c 63 33 51 36
49 46 5a 4a 64 48 52 76 65 6a 4a 66 58 30 5a 43
57 58 5a 74 64 33 4e 50 64 6a 42 45 4e 31 56 43
54 6e 5a 75 4e 45 31 48 56 6d 68 4e 62 7a 64 30
54 54 6c 54 65 55 51 33 61 48 4e 43 62 51 30 4b
49 48 4e 70 59 57 6c 54 63 46 6c 70 65 55 4a 4d
4e 33 70 77 51 6e 56 58 51 32 63 77 64 45 78 6e
63 31 4a 43 53 6d 5a 59 59 31 45 32 59 6d 39 42
56 43 31 77 52 31 39 33 44 51 70 54 53 45 45 74
4e 54 45 79 4c 55 52 70 5a 32 56 7a 64 43 31 4e
59 57 35 70 5a 6d 56 7a 64 43 31 4e 59 57 6c 75
4c 55 46 30 64 48 4a 70 59 6e 56 30 5a 58 4d 36
49 46 5a 4a 64 48 52 76 65 6a 4a 66 58 30 5a 43
57 58 5a 74 64 33 4e 50 64 6a 42 45 4e 31 56 43
54 6e 5a 75 4e 45 31 48 44 51 6f 67 56 6d 68 4e
62 7a 64 30 54 54 6c 54 65 55 51 33 61 48 4e 43
62 58 4e 70 59 57 6c 54 63 46 6c 70 65 55 4a 4d
4e 33 70 77 51 6e 56 58 51 32 63 77 64 45 78 6e
63 31 4a 43 53 6d 5a 59 59 31 45 32 59 6d 39 42
56 43 31 77 52 31 39 33 44 51 70 44 63 6d 56 68
64 47 56 6b 4c 55 4a 35 4f 69 41 78 4c 6a 41 67
4b 46 4a 4a 54 53 42 43 59 58 4a 54 61 57 64 75
5a 58 49 67 56 47 39 76 62 43 6b 4e 43 67 30 4b
DevCert =
4d 49 49 42 61 7a 43 42 7a 4b 41 44 41 67 45 43
41 68 45 41 32 39 4a 50 33 61 57 74 75 56 55 6f
38 53 47 55 53 5a 65 73 30 6a 41 4d 42 67 67 71
68 6b 6a 4f 50 51 51 44 42 41 55 41 4d 42 51 78
45 6a 41 51 42 67 4e 56 42 41 4d 4d 43 55 4a 31
63 6d 46 75 63 32 39 6d 64 44 41 65 46 77 30 78
4d 7a 41 34 4d 6a 41 78 4d 6a 4d 79 4d 44 46 61
46 77 30 7a 4d 7a 41 34 4d 54 55 78 4d 6a 4d 79
4d 44 46 61 4d 42 51 78 45 6a 41 51 42 67 4e 56
42 41 4d 4d 43 55 4a 31 63 6d 46 75 63 32 39 6d
64 44 42 59 4d 42 41 47 42 79 71 47 53 4d 34 39
41 67 45 47 42 53 75 42 42 41 41 6a 41 30 51 41
41 77 46 61 48 72 59 64 64 53 33 35 2b 72 48 6f
49 50 4b 4a 58 55 47 6b 54 46 30 61 6a 37 39 6a
33 37 30 4c 6b 48 6e 6c 4c 57 69 66 6f 57 43 2b
37 41 36 70 55 2f 34 7a 33 6e 2b 77 78 34 4e 32
45 78 79 37 71 6c 4e 6b 46 4e 78 70 6b 77 55 57
49 52 61 4f 53 50 61 36 57 6a 41 4d 42 67 67 71
68 6b 6a 4f 50 51 51 44 42 41 55 41 41 34 47 4c
41 44 43 42 68 77 4a 43 41 4c 42 55 46 41 33 58
41 37 7a 36 43 45 74 53 6a 74 51 6f 39 35 6c 31
6b 49 4c 4d 52 53 43 51 58 48 6a 38 6e 45 77 36
4a 49 43 74 74 72 61 2b 6c 55 63 65 63 6d 6f 4d
4d 37 50 2f 72 64 4f 58 77 4e 76 4c 61 4f 67 59
6c 74 69 43 65 64 56 6f 55 65 78 34 30 76 61 32
41 6b 46 48 31 4a 41 30 4c 71 4d 4d 4b 46 6d 55
4c 36 55 2f 50 54 71 73 59 58 74 31 69 68 51 57
52 53 64 30 58 66 33 63 69 30 6e 6a 4b 58 30 68
41 2b 7a 35 76 37 52 4d 64 5a 53 30 66 58 38 43
47 4a 73 66 66 6c 4b 64 37 67 76 30 4f 78 2f 51
6c 50 78 79 6c 2f 41 73 6f 41 3d 3d
Connecting to URL http://www.rim.net/Websigner/servlet/PBDT-Waterloo
Sending properties to server...
Properties of response := [
Version = 1
Response = Signature Response
Confirm = Signing server ID PBDT signed code file from client ID 2001681.
Error = null
]
Encoded Package-Author-Id =
67 59 41 41 67 41 72 4e 6c 51 54 68 52 4b 48 5f
42 65 39 71 52 63 41 5f 49 4e 73
Encoded Package-Id =
67 59 41 42 67 4d 78 35 4b 5a 5a 71 6e 6b 4a 72
78 33 50 55 79 74 2d 66 49 42 41
Encoded Package-Version-Id =
67 59 41 43 67 44 2d 35 55 79 49 76 34 6c 37 66
65 67 2d 7a 57 6b 51 6f 2d 69 41
Package-Issue-Date =
32 30 31 33 2d 30 38 2d 32 30 54 31 35 3a 35 30
3a 34 39 5a
Package-Version =
30 2e 30 2e 30 2e 34 34
Debug-Token-Expiry-Date =
32 30 31 33 2d 30 39 2d 31 39 54 31 35 3a 35 30
3a 34 39 5a
Debug-Token-System-Actions =
65 78 65 63 75 74 65 2c 6d 75 6c 74 69 5f 77 69
6e 64 6f 77 2c 6d 75 6c 74 69 5f 69 6e 73 74 61
6e 63 65 2c 72 75 6e 5f 61 69 72 5f 6e 61 74 69
76 65 2c 72 75 6e 5f 6e 61 74 69 76 65 2c 5f 73
79 73 5f 75 73 65 5f 63 6f 6e 73 75 6d 65 72 5f
70 75 73 68 2c 5f 73 79 73 5f 72 75 6e 5f 68 65
61 64 6c 65 73 73
Encoded Signature =
41 66 66 61 56 32 52 75 41 41 62 39 4d 78 42 6f
4b 73 52 46 6f 79 49 34 33 51 61 70 2b 45 41 4a
76 58 61 49 31 67 35 45 57 61 39 78 5a 69 34 31
78 6f 49 6d 73 38 66 38 4f 4b 73 41 2b 2f 56 43
4d 37 63 2f 44 6c 35 44 4b 59 61 42 69 49 47 73
69 6a 48 64 7a 76 6e 36 41 4b 4f 31 47 4b 48 42
4a 6d 33 65 62 54 55 76 34 2b 77 6a 67 34 52 57
2f 6c 65 56 66 61 30 59 62 46 6a 49 30 72 43 4e
37 47 49 71 6e 59 4b 49 48 35 53 62 4d 73 4e 61
38 48 59 35 78 4f 78 33 6f 43 63 4e 73 6f 6d 72
41 6f 71 32 77 6c 51 5a 78 57 53 2f 50 6c 2b 44
Decoded Signature =
01 f7 da 57 64 6e 00 06 fd 33 10 68 2a c4 45 a3
22 38 dd 06 a9 f8 40 09 bd 76 88 d6 0e 44 59 af
71 66 2e 35 c6 82 26 b3 c7 fc 38 ab 00 fb f5 42
33 b7 3f 0e 5e 43 29 86 81 88 81 ac 8a 31 dd ce
f9 fa 00 a3 b5 18 a1 c1 26 6d de 6d 35 2f e3 ec
23 83 84 56 fe 57 95 7d ad 18 6c 58 c8 d2 b0 8d
ec 62 2a 9d 82 88 1f 94 9b 32 c3 5a f0 76 39 c4
ec 77 a0 27 0d b2 89 ab 02 8a b6 c2 54 19 c5 64
bf 3e 5f 83
ASN.1 Signature =
30 81 88 02 42 01 f7 da 57 64 6e 00 06 fd 33 10
68 2a c4 45 a3 22 38 dd 06 a9 f8 40 09 bd 76 88
d6 0e 44 59 af 71 66 2e 35 c6 82 26 b3 c7 fc 38
ab 00 fb f5 42 33 b7 3f 0e 5e 43 29 86 81 88 81
ac 8a 31 dd ce f9 fa 02 42 00 a3 b5 18 a1 c1 26
6d de 6d 35 2f e3 ec 23 83 84 56 fe 57 95 7d ad
18 6c 58 c8 d2 b0 8d ec 62 2a 9d 82 88 1f 94 9b
32 c3 5a f0 76 39 c4 ec 77 a0 27 0d b2 89 ab 02
8a b6 c2 54 19 c5 64 bf 3e 5f 83

C:\Users\Burak\AppData\Local\Research In Motion>