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

Testing and Deployment

Reply
New Developer
DementedDevil
Posts: 7
Registered: ‎04-06-2012
My Device: Bold 9900

Windows 8 + Code Signing

Hi All,

 

If you are using Windows 8 and getting weird errors concerning code-signing then please read this...

It took me two long, long days to get to the bottom of this...

 

Basically if you use the code signing UI or command-line to register your signing keys it fails with really weird errors.

The clue of course (looking back) was when the UI states it cannot find the .csk file after it seems to successfully register with RIM.

 

Anyway cutting a long story short (because I really need to get back to coding my BB10 killer application ;-) of course) the culprit is the tool "blackberry-signer" which is supposed to store the .csk file in the following directory;

 

C:\Users\YourUser\Local Settings\Application Data\Research In Motion

 

as this is where everything else is stored and indeed where it is stored on Windows editions prior to Windows 8.

 

However it turns out that in Windows 8 it actually stores the .csk file in this directory;

 

C:\Users\YourUser\AppData\Local\Research In Motion

 

I didn't have time to work out which files should be in which folder; I just make sure that all the code-signing files are in both locations and now it works.

 

I can now issue debug tokens and my world is now a happy place...

 

Hope this saves someone bacon!

 

Adrian

 

If it ain't broke try harder...

My stuff: Bold 9900/PlayBook 64Gb/BB10 Dev Alpha B DTAC/Thailand

BESAdmin
WinServer 2008R2 / Exchange 2010
24Gb RAM, > 2TB HARDDISK

Developing for BB10 with Cascades, QML and C++
Please use plain text.
Administrator
MSohm
Posts: 14,410
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Windows 8 + Code Signing

Thanks for reporting this.  I've logged it in Issue Tracker and reported it to our internal development team.

 

barsigner files are created in wrong folder in Windows 8

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
Please use plain text.
New Developer
netcom1155
Posts: 41
Registered: ‎12-31-2012
My Device: playbook
My Carrier: Rogers

Re: Windows 8 + Code Signing

Thx for sharing, I got the same issue.

Please use plain text.
Developer
lrrm
Posts: 306
Registered: ‎03-01-2011
My Device: Playbook (sim)
My Carrier: Base

Re: Windows 8 + Code Signing

[ Edited ]
thx a lot, saved my day! can you tell me exactly what you've done? because the local settings folder points forward to appdata/local/reasearch in motion/ which should be the folder the graphical aid is looking for.
..................................................................................................................................................................................................................

My App: Peg Solitaire

Need a designer? Drop me a line
Please use plain text.
Contributor
DMA2011
Posts: 33
Registered: ‎09-19-2011
My Device: playbook
My Carrier: none

Re: Windows 8 + Code Signing

Thank for this - Was just on the verge of restoring to windows 7 when I found it.

Please use plain text.
Developer
KlausNahr
Posts: 45
Registered: ‎07-29-2008
My Device: Z10 Red, 8900, PlayBook
My Carrier: E-Plus

Re: Windows 8 + Code Signing

Thanks a lot for sharing. Unfortunately I wasted a few hours trying to find a solution for "Error: not yet registered to request debug tokens" before I found this article.

 

As this is a known bug since a very long time, I am wondering why BlackBerry doesn't fix it.

Klaus Nahr
Please use plain text.
Administrator
MSohm
Posts: 14,410
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Windows 8 + Code Signing

The comments in Issue Tracker for that issue appear to be broken.  It was determined that this wasn't a bug but a problem from running the application in Windows XP compatibility mode, which causes barsigner to place the files in the location for Windows XP.

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
Please use plain text.