Generating a certificate for Huawei App Gallery

List existing certificates:

set PATH=%PATH%;C:\Program Files\Android\Android Studio\jbr\bin
keytool.exe -list -v -keystore linesgame.keystore

Generate the new one:

keytool.exe -genkey -v -keystore linesgame.keystore -alias linesgame-huawei -keyalg RSA -keysize 2048 -validity 100000

Deleting a certificate:

keytool.exe -delete -alias linesgame-huawei -keystore linesgame.keystore

Export:

keytool.exe -export -rfc -keystore linesgame.keystore -alias linesgame-huawei -file linesgame-huawei.pem

Build AAB and check its signature:

keytool -printcert -jarfile android-build-release.aab

3 Responses to Generating a certificate for Huawei App Gallery

  1. dmitriano says:

    https://help.gamesalad.com/windows-cookbook/publishing/android-publishing/android-app-bundle-aab-command-line-signing/

    jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore [path to keystore] -signedjar [name for the output signed file].aab [path to unsigned aab] [keystore alias]

  2. dmitriano says:

    Converted:
    keytool -importkeystore -srckeystore C:\dev\repos\examples\Keys\LinesGame\linesgame.keystore -destkeystore C:\dev\repos\examples\Keys\LinesGame\linesgame.keystore -deststoretype pkcs12

Leave a Reply

Your email address will not be published. Required fields are marked *