Search Unity

How can I find my Signing Certificate Fingerprint (SHA1)

Discussion in 'Android' started by Alex_P, Apr 23, 2014.

  1. Alex_P

    Alex_P

    Joined:
    Jun 29, 2013
    Posts:
    16
    When setting up my client ID settings on the Google Developer Console, it prompted me to enter my 'Signing Certificate Fingerprint (SHA1)'.

    Where can I find this signing certificate fingerprint?

    Also,
    I've been working under the assumption that this is the same as the Keystore you create under Publishing Settings.
    Is this correct?
    I've successfully created a keystore, but I have no idea how to view it.

    Thank you for any help!
     
    Marloxo likes this.
  2. DalerHakimov

    DalerHakimov

    Joined:
    Mar 14, 2014
    Posts:
    302
    about what client ID are you talking about? For configuring Google Play Services?

    Edit:

    To get the release certificate fingerprint:

    keytool -exportcert \
    -alias <your-key-name> \
    -keystore <path-to-production-keystore> \
    -list -v
    To get the debug certificate fingerprint:
    keytool -exportcert \
    -alias androiddebugkey \
    -keystore <path-to-debug-keystore> \
    -list -v

    reference: https://developers.google.com/games/services/console/enabling#b_create_a_client_id
     
    Last edited: Apr 23, 2014
  3. Alex_P

    Alex_P

    Joined:
    Jun 29, 2013
    Posts:
    16
    I don't know enough to understand that list of steps.
    However, I got it working. I didn't realize you had to have an apk of the game uploaded when you were authorizing the app on the google developer console. As soon as I uploaded an apk, the developer console filled in the SHA1 automatically
     
    JairoGLoz and john-jds like this.
  4. vekkna

    vekkna

    Joined:
    Apr 6, 2014
    Posts:
    6
    The following steps worked for me.

    In the Unity editor open File -> Build Settings.
    Open Player Settings and in the inspector open the Publishing Setting tab.
    Click on Create new keystore, then Browse keystore.
    Save the file that is created, it should be in your project folder.
    Enter a password.
    In the Alias dropdown, create a new key.
    Fill in the form that pops up.

    Next, search your computer for keytool.exe.
    Open a terminal window in keytool's folder and type the commands.

    For example:

    keytool -exportcert -alias examplealias -keystore D:\mygames\mygame\user.keystore -list -v.

    You'll be asked for the password.

    This should print the info to the console.

    Hope this helps.
     
  5. tungnguyendev

    tungnguyendev

    Joined:
    Mar 26, 2014
    Posts:
    13
  6. polaroceanfire

    polaroceanfire

    Joined:
    Oct 6, 2015
    Posts:
    1
    If you end up having an issue with this, make sure none of the folders in your directory string have a space, or you will get command prompt errors. I just ran into this problem, removed the space, and everything works~