r0adkll / sign-android-release

A GitHub action to sign an APK or AAB
MIT License
363 stars 137 forks source link

JarSigner Private and Public Key Issue #42

Open abdullahkhan70 opened 3 years ago

abdullahkhan70 commented 3 years ago

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.

kojofosu commented 2 years ago

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

Kagiri11 commented 1 year ago

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