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.
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
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.
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~
Just a little sharing of what I faced. I was able to trace the file and open it but when opening the file, it asked me for password which I was typing but nothing was shown on terminal at all. So I thought if password is not being typed. But this was being typed! and when I hit enter, the SHA1 was shown.
Here is our tutorial on how to get the SHA fingerprint for authenticating Google play services.
Note that, the SHA fingerprint keeps changing based on the keystore you use.
If you build your apk/aab in
Debug/Development mode : Default debug.keystore will be used
Release mode: The keystore you set in the unity inspector will be used
Production/Google Play : The apk downloaded from the google play has its own keystore and you can find the sha fingerprint in App Signing section.
For anybody having this problem download KeyStore Explorer. You can open up your key with the pass, double click it to view certificates. I stumbled on this and it was a life saver, hope it helps someone else
For anyone still having trouble with it just write this into command promt
keytool -alias (your alias) -keystore (your keystore file directory) -list -v
and its gonna fail if there is any spaces in any of the directories