3.3 Generate Debug Certificate
You need to generate 2 signing certificates for the google sign-in feature. Debug certificate is required for testing purposes. If you want to test google signing during development, then you should follow the steps. Otherwise, you can ignore it.
- To generate a debug certificate, run this command on your terminal from your approot directory.
Mac
Windows
keytool -list -v \
-alias androiddebugkey -keystore ~/.android/debug.keystore
keytool -list -v \
-alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore
If this command doesn’t work, then go to this link and copy the debug command from there according to your os.
- Use android as a debug password when the terminal asks for a password.
- Copy the SHA1 certificate code and go to Firebase Console > Your Project > Project Settings and click on the android icon and then add the SHA1 code by clicking add fingerprint button. Look at the picture below:
Last modified 8mo ago