sign-android-release icon indicating copy to clipboard operation
sign-android-release copied to clipboard

JarSigner Private and Public Key Issue

Open abdullahkhan70 opened this issue 3 years ago • 2 comments

Hello everyone,

Today, I was trying to use this action in your project. Whenever it starts generating the APK through It, then it gives me this error.

> Run r0adkll/sign-android-release@v1
>   with:
>     releaseDirectory: android/app/build/outputs/bundle/release
>     signingKeyBase64: ***
>     alias: ***
>     keyStorePassword: ***
>     keyPassword: ***
> 
> Preparing to sign key @ android/app/build/outputs/bundle/release with signing key
> 
> /usr/bin/jarsigner -keystore android/app/build/outputs/bundle/release/signingKey.jks -storepass *** -keypass *** android/app/build/outputs/bundle/release/app-release.aab ***
> 
> jarsigner: Certificate chain not found for: ***.  *** must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.
> 
> Error: The process '/usr/bin/jarsigner' failed with exit code 1

How can I sort out this problem.

abdullahkhan70 avatar May 15 '21 06:05 abdullahkhan70

i had similar issue, and I created a new jks with name that matches what is in the build env....so the new jks was named signingKey.jks and that solved the issue for me

kojofosu avatar Mar 28 '22 17:03 kojofosu

@kojofosu just encountered this error. Do you mean the keystore.jks should ideally be named same as your github secret?

Kagiri11 avatar Aug 09 '23 13:08 Kagiri11