Certificate chain not found, how to fix and publish to Google Play Store?

前端 未结 6 1474
滥情空心
滥情空心 2020-12-07 18:51

ERROR MESSAGE:

jarsigner: Certificate chain not found for: project_foo.
project_foo must
6条回答
  •  失恋的感觉
    2020-12-07 19:04

    i had the same issue my commands were

    to generate key

     keytool -genkey -v -keystore testapp-key.keystore -alias testapp-key -keyalg RSA -keysize 2048 -validity 10000
    

    and then i did this to sign the app

    jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore testapp-key.keystore testapp.apk testapp
    

    i got this error

    jarsigner: Certificate chain not found for: testapp.
    project_foo must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.

    then i replaced the alias 'testapp' in the jarsignir command with the key alias that is 'testapp-key' it is in first command i.e. key generation command

    the command will look like this

    jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore testapp-key.keystore testapp.apk testapp
    

    in your case it will be like this

     jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore C:\Path\\.keystore Foo.apk your-key-alias
    

提交回复
热议问题