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

Adobe AIR Development

Reply
Developer
Posts: 274
Registered: ‎11-01-2010
My Device: PlayBook?
My Carrier: WiFi
Accepted Solution

What happens when the signing certificate expires?

For the past several months, whenever I sign a BAR I get the message: "Warning: The signer certificate will expire within 6 months."

 

Peter9477 pointed me toward the command to get some more information about the signing certificate:

blackberry-keytool -exportcert -storepass PASS -keystore STORE -file output.crt

 Enter your store pass and and keystore in the appropriate places. Output.crt (you can name it whatever you want to) will be the resulting file. Open it and it will give you more information about your certificate.

 

In my case it points out that my certificate will expire on February 23. As that date is fast approaching I am wondering what we are supposed to do to renew our current certificate, so that we can continue to push out updates for our apps.

 

I am also wondering what happens if the certificate expires.

 

Any clarification is appreciated Smiley Happy

Developer
Posts: 350
Registered: ‎01-21-2011
My Device: Curve 8900 (Personal) / Bold 9650 (Work)
My Carrier: Regional

Re: What happens when the signing certificate expires?

Rotten, are you sure the year is 2012? I just ran this command on mine, and mine expires 4/28/2031
Developer
Posts: 274
Registered: ‎11-01-2010
My Device: PlayBook?
My Carrier: WiFi

Re: What happens when the signing certificate expires?

Yup it's 2012.

 

Says it's valid from 23/02/2011 until 23/02/2012

 

Interesting that yours goes until 2031...

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

Re: What happens when the signing certificate expires?

[ Edited ]

Just in case the tool you're using to view it (Windows, recognizing the .crt extension?) is screwing up, note the following command that's also on the keytool, for displaying the details at the command line:

blackberry-keytool -printcert -file output.crt

 (with output.crt being whatever you exported to in the earlier command).

 

On mine, this looks something like this:

Owner: CN=[my company name]
Issuer: CN=[my company name]
Serial number: [8-digits-hex]
Valid from: Thu Feb 17 17:58:13 EST 2011 until: Fri Feb 17 17:58:13 EST 2012
Certificate fingerprints:
         MD5:  [sequence-of-bytes-in-hex]
         SHA1: [sequence-of-bytes-in-hex]
         Signature algorithm name: SHA512withECDSA
         Version: 3

 


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
BlackBerry Development Advisor
Posts: 52
Registered: ‎04-01-2011
My Device: Torch, Playbook
My Carrier: Rogers

Re: What happens when the signing certificate expires?

Hey Rotten,

 

you could just create a new certificate using the same author name.

 

 

Cheers

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

Re: What happens when the signing certificate expires?

If that's all it takes, why was there so much concern in the past about people who "lost their signing keys"? It seemed to be the case that many people thought they would not be able to sign their apps with the same app id resulting, and updates posted to App World would result in duplicate entries because the device would think it was a new app.

Was all that misguided/misinformation? I know some people actually DID encounter that problem... was that merely because the developers involved didn't use precisely the same vendor name when they got the second "set of keys"?

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!
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: What happens when the signing certificate expires?

And if that is the case, instructions in how to determine what the CN name that was used in the original cert would be of help.
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: What happens when the signing certificate expires?

John, I already posted that just above: http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/What-happens-when-the-signing-cer...

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!
Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: What happens when the signing certificate expires?

Hi Peter,

 

There is still an issue if a developer loses their signature keys as the Application ID/Author ID is tied directly to those keys, not just the vendor name. If a developer signs version 1 of their app with one set of keys then signs version 2 with a second set, the App World Vendor Portal  will now actively reject version 2 from being uploaded as it will be seen as a separate app altogether.

 

Due to the above info it is extremely important to back up your signature key files as soon as they are created:

http://supportforums.blackberry.com/t5/Testing-and-Deployment/Backup-and-Restore-BlackBerry-Code-Sig...

 

Regards,

Garett
@garettBeuk
--
Goodbye everybody!
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: What happens when the signing certificate expires?

Thanks Garett. But what is one suppose to do when the cert expires? will users will have to re-purchase the application since it is seen as a different product?