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

Android™ Runtime Development

Reply
Developer
maribou
Posts: 40
Registered: ‎04-01-2009
My Device: Torch 9810
My Carrier: Rogers
Accepted Solution

Cannot update published app: certificate expired.

The certificate I used for my Android app has expired (valid until Feb. 23, 2012).  My new certificate is valid until 2032. The -printcert output shows the same Owner CN and Issuer CN for both certificates.  However, I cannot deploy a bar file signed with the new certificate if the one signed with the expired certificate is on device.  blackberry-deploy returns failure -104

 

What is failure -104 and what can I possibly do to upgrade my app, which is already published in App World?

 

I compared MANIFEST.MF between the old and the new bar files.  Everything is the same except for the following fields: Package-Version, Package-Author-Certificate-Hash, Package-Version-Id, Package-Issue-Date, Application-Version, Application-Version-Id, Archive-Asset-SHA-512-Digest

 

Package-Author-Id, Package-Id and Application-Id are the same.

Please use plain text.
Contributor
Evozi
Posts: 13
Registered: ‎02-09-2012
My Device: none
My Carrier: DiGi

Re: Cannot update published app: certificate expired.

I'm afraid that you might need to release a new version with different package ID when you release it on Android Market but for AppWorld I not sure.

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Cannot update published app: certificate expired.

Could you provide the full command-line output when trying to perform the blackberry-deploy command?

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Developer
maribou
Posts: 40
Registered: ‎04-01-2009
My Device: Torch 9810
My Carrier: Rogers

Re: Cannot update published app: certificate expired.

[ Edited ]

Here is what it looks like...

Deploying the old version:

 

blackberry-deploy -installApp -device 169.254.0.1 -password **** -package SP2.bar
Info: Sending request: Install
Info: Action: Install
Info: File size: 1831281
Info: Installing ...
Info: Processing 1831281 bytes
Info: Progress 50%...
Info: Progress 100%...
actual_dname::com.sgg.sp2.gYABgCnip1SOko1qHu83ji7MHGg
actual_id::gYABgCnip1SOko1qHu83ji7MHGg
actual_version::1.0.9.0
result::success

 

And now trying to upgrade:

 

blackberry-deploy -installApp -device 169.254.0.1 -password **** -package SP2.bar
Info: Sending request: Install
Info: Action: Install
Info: File size: 1838608
Info: Installing ...
Info: Processing 1838608 bytes
Info: Progress 50%...
Info: Progress 100%...
actual_dname::com.sgg.sp2.gYABgCnip1SOko1qHu83ji7MHGg
actual_id::gYABgCnip1SOko1qHu83ji7MHGg
actual_version::1.0.11.0
result::failure -104

 EDIT:

I've checked the installed version using blackberry-deploy -listInstalledApps, and it reports 1.0.11 is on device. I'll double-check and post the results here.

Please use plain text.
Developer
maribou
Posts: 40
Registered: ‎04-01-2009
My Device: Torch 9810
My Carrier: Rogers

Re: Cannot update published app: certificate expired.

and here is the result...

Despite being reported as version 1.0.11, the app on device is still 1.0.9

 

After uninstalling the app and deploying 1.0.11 as follows, the latest version finally appears on the tablet.

 

blackberry-deploy -installApp -device 169.254.0.1 -password **** -package SP2.bar
Info: Sending request: Install
Info: Action: Install
Info: File size: 1838608
Info: Installing ...
Info: Processing 1838608 bytes
Info: Progress 50%...
Info: Progress 100%...
actual_dname::com.sgg.sp2.gYABgCnip1SOko1qHu83ji7MHGg
actual_id::gYABgCnip1SOko1qHu83ji7MHGg
actual_version::1.0.11.0
result::success

 

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Cannot update published app: certificate expired.

Are you running the latest PlayBook OS (2.0.0.7971)? If so, please log a bug in Issue Tracker (linked in my signature) so this can be further investigated.

 

Regards,

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Developer
maribou
Posts: 40
Registered: ‎04-01-2009
My Device: Torch 9810
My Carrier: Rogers

Re: Cannot update published app: certificate expired.

Yes, the latest. The issue tracker seems to be down (The system has encountered an error. If you feel that you have reached this page by mistake, please wait a moment and try visiting the page again.). I'll try later when it starts accepting new tickets.
Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Cannot update published app: certificate expired.

It's working for me. What steps do you take to reproduce the error?

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Developer
maribou
Posts: 40
Registered: ‎04-01-2009
My Device: Torch 9810
My Carrier: Rogers

Re: Cannot update published app: certificate expired.

Steps:

1. Click on the link in your signature.

2. Log in

3. Click "Submit an issue"

4. Project: BlackBerry Tablet OS

5. Issue type: Bug

6. Summary: Cannot update published app: certificate expired

7. Click Next

8. Get error message


Browser: Chrome

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Cannot update published app: certificate expired.

Strange, it works for me. What is your OS? Could you provide a screenshot of the error?

 

Also, note that this should not be related to the certificate expiring, so please do not put that as your title.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.