Getting "unable to load a certificate in this file" when trying to publish APK

Explorer ,
Mar 31, 2017 Mar 31, 2017

Copy link to clipboard

Copied

I wanted to update one of my apps, but when I try to publish it, I receive the following message:

Bildschirmfoto 2017-04-01 um 00.32.09.png

What is wrong with my certificate?

Views

9.2K

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct Answer

Explorer , Apr 03, 2017 Apr 03, 2017
Yeah, it works! Just installed "Adobe Animate 2015.2" and was able to publish my app using AIR 25.Temporary fix: Don't use the latest version of Animate CC 2017.

Likes

translate

Translate

Translate
Adobe Community Professional ,
Aug 20, 2018 Aug 20, 2018

Copy link to clipboard

Copied

I'm in no hurry.

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 19, 2019 Mar 19, 2019

Copy link to clipboard

Copied

Its now 2019 march!!

I  have 8 APPS on Android and i am not allowed to change the certificate on an APP on Google Play.

So my users are not getting a major Update we are woorking for months.

I use Animate 2019 an my certificate is 1024. I can not change it cause all the thousands users wont get an update.

So its crucial deadlock. I pay for Adobe 70 € a month. and the problem is known for years !!!!!!!

What should I do ????  I cannot downgrade to 2015 cause i use features from CC 2017

Please help.

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 13, 2019 May 13, 2019

Copy link to clipboard

Copied

I attempted to contact several times adobe support team about that issue ( I have a lot of apps using 1024 bits cert because I started in May 2013 to post apps ) and no one at Adobe offered a real solution here using recent versions of adobe.

Oleg Korchagin offered a nice workaround for now..

I just tested it with Animate 2019.2 and it works.

“Could not access the digital certificate.  unable to load a certificate in this file”

Steps:

1. Quit any version of Animate if it is running

2. Copy C:\Program Files\Common Files\Adobe\Adobe Animate CC 2015.2\jre

3. Rename C:\Program Files\Common Files\Adobe\Adobe Animate CC 2017\jre folder to say C:\Program Files\Common Files\Adobe\Adobe Animate CC 2017\orig_jre

4. Paste the jre folder that you have copied in step 2

5. Launch Animate CC 2017 and publish your android app using the older 1024 RSA certifcate

Please note that this is just a brute-force method and not a certified/recommended workflow.

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 13, 2019 May 13, 2019

Copy link to clipboard

Copied

The last post on that thread says:

"Here in April 2019, the brute force method described by @Mohanaraj no longer works."

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 14, 2019 May 14, 2019

Copy link to clipboard

Copied

As kek says, copy the jre folder from 2015.2 version and replace it in 2019.2

I use 2019.2 and it works great.

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 29, 2019 May 29, 2019

Copy link to clipboard

Copied

Hello everyones, for some reasons the trick no longer works.

When I try to add a new AIR kit to Animate it says : The selected folder does not contain a valid AIR SDK

It's a big issue here. Creative Cloud do not offer to install Animate CC 2015 it no longer works. Does anybody have a solution?

I downgraded java version jre 1.8 build 111 but it's the same result...

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 13, 2019 May 13, 2019

Copy link to clipboard

Copied

LOL.

Animate 2019.2 not work for me on two my Windows desktops (((

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 14, 2019 May 14, 2019

Copy link to clipboard

Copied

Here it still works, having animate 2019.2 and copied the jre of 2015, I can use my old 1024bits certificate.. Well I cross fingers.

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 30, 2019 Jul 30, 2019

Copy link to clipboard

Copied

Having this in Animate 2019 on MacOS 10.14.3 (Mac OSX).

What is the solution for Mac?

I have attempted to downgrade to Java (build 1.8.0_74-b02). No luck, same message.

This is 100% ridiculous.

From the very first time Adobe created a certificate for me through the Flash interface, many years ago, there was something in the back of my head that said, this just doesn't feel right. Well, here we are years later getting screwed.

How do you install Animate 2015.2 these days. Creative Cloud doesn't give me the option.

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jul 31, 2019 Jul 31, 2019

Copy link to clipboard

Copied

1. Quit any version of Animate if it is running

2. extract the jre folder from http://www.kglad.com/Files/forums/jre.zip

3. Rename C:\Program Files\Common Files\Adobe\Adobe Animate CC <your version>\jre folder to say C:\Program Files\Common Files\Adobe\Adobe Animate CC 2017\orig_jre

4. Paste the jre folder that you have extracted in step 2

5. Launch Animate CC and publish your android app using the older 1024 RSA certifcate

6.  copy this message and paste into a text file so you can remember how to restore both jre's.

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 31, 2019 Jul 31, 2019

Copy link to clipboard

Copied

These instructions seem very helpful for Windows users.

Does anyone have equivalent for Mac?

From what I see, the Java Runtime Environment is not bundled in the app like it seems these instructions imply for Windows.

I tried downgrading my system-wide JRE, but that did not seem to help.

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jul 31, 2019 Jul 31, 2019

Copy link to clipboard

Copied

i have a mac and could work it out but don't have time right now.

but Colin Holgate may already have that worked.  he uses a mac, https://forums.adobe.com/people/Colin%20Holgate

if he's able to get that to you, post the mac solution here.

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 31, 2019 Jul 31, 2019

Copy link to clipboard

Copied

I think I got it working by doing the following.

I manually downgraded my Java Runtime Environment to 1.8.0_74 (jre-8u74-macosx-x64.dmg) by following this guide:

https://support.planwithvoyant.com/hc/en-us/articles/209725003-Install-or-revert-to-a-prior-version-...

Java Archive Downloads - Java SE 8

I don't know for sure if that was necessary, but based on the info in this thread it probably was.

Then, in Terminal, I used an ADT command similar to the one posted by juvelez​:

[path-to-adt] -package -target apk-captive-runtime -arch armv7 -storetype pkcs12 -keystore "[path-to-cert.p12]" -storepass [cert-password] [output-path.apk] [appname]-app.xml [appname].swf [path-to-icons-directory] [other paths to include] [path-to-default.png] -extdir [path-to-directory-with-ANEs]

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 31, 2019 Jul 31, 2019

Copy link to clipboard

Copied

I never did figure out how to install Flash Professional 2015.2. So I have no clue if that would have helped, instead of having to dig around in command line, which is the whole point of using the Flash/Animate IDE.

My Creative Cloud App only lists "Animate and Mobile Device Packaging". (GREAT name by the way)

If I select Manage > Other Versions, I get the following options:

  • 19.2
  • CC 19.1
  • CC 19.0
  • CC 18.0.2

Sweet! Not only are none of these the version I want, they also break all the other version naming conventions which use 20xx.x.

Good ol' "Flash" does not appear in my list.

As a paying customer, the least I would expect in this situation is a SIMPLE way to view and download EVERY single version that I ever had access to... I can't ever find a HARD way.

Take notes from what Unity does. Every single version that ever was, including patches and long term support updates:

Unity - Download Archive

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 26, 2019 Sep 26, 2019

Copy link to clipboard

Copied

I was able to convert my old p12 (1024 bit) file to the new p12 (2048 bit) using openssl (in Windows10). However I haven't yet tried to upload my app to Google Play so I'm not 100% sure. But it did allow me to publish my app in AnimateCC 2019.

 

1. You need to install openssl 

2. Navigate to openssl.exe file (ie. c:\OpenSSL-Win64\bin\openssl.exe), right-click and select "Run as Administrator"
3. Type: pkcs12 -in c:/path/yourkey.p12 -out c:/path/yourkey.pem -nodes ("c:/path/yourkey.p12" is the path and name of your key, just for clarity. This should create a .pem file from your .p12)

4. Type: pkcs12 -export -out c:/path/yourkey.p12 -in c:/path/yourkey.pem -inkey c:/path/yourkey.pem -passin pass:root -passout pass:root (now this seemed to have changed my password to "root", I'm sure you can change that. Maybe that password part can be removed? I'm not sure. My knowlegde of openssl is very limited. Perhaps someone can add to this post?)

5. Now your old .p12 (1024 bit) should be converted to the new 2048 bit version.

Let me know if that works for anyone else.

Here are the sources I Googled:
https://medium.com/@nirmaluchoudhari/converting-certificates-using-openssl-9957a743c66b

https://www.ibm.com/support/knowledgecenter/en/SSPH29_9.0.3/com.ibm.help.common.infocenter.aps/t_Con...

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 26, 2019 Dec 26, 2019

Copy link to clipboard

Copied

Hi, thank you for your tip ! Does it work when uploading on Google Play ?

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 06, 2020 Mar 06, 2020

Copy link to clipboard

Copied

Hi,

Don't work in google play. ( not same signature )

The key can be convert and can work on animate.

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 06, 2020 Mar 06, 2020

Copy link to clipboard

Copied

I find the solution :

The problem isn't Animate but Java who force you to compile to 2048

you need to Java 1.6 

and compile in command line :

java -jar "****\SDKAIR\AIR26.0\lib\ADT.jar" -package -target apk-captive-runtime -arch armv7 -storetype PKCS12 -keystore "*****.p12" -storepass "****" "*****.apk" "****.xml" -C "****.swf"

change *** by your stuff ^^

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 15, 2020 Nov 15, 2020

Copy link to clipboard

Copied

Hi pierrec14624606,

 

Can you confirm that the solution in your last post is working to upload an apk to Google Play?

 

I still have some apps with 1024 and I don´t want to loose my current users.

 

Best,

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines