I am trying to get a SHA1 certificated fingerprint for a firebase app but I keep getting this error and I don't know why because I followed indeed the command I found.
You are missing a space between ...debug.keystore" and -alias.
Related
I/BiChannelGoogleApi(15179): [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzaq#7a473f
I am getting this error when i press the login button . Also , i added the correct googleservices.json in app folder in flutter
Can anyone please tell me the reason why is it occuring so ?
Make sure you added the SHA 1 in the Firebase console. If you didn’t you can get the SHA 1 by
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
Try getting your SHA1 and SHA256 with gradlew signingReport
I can login using google signin in debug mode.
I have also tried building an apk like flutter build apk --release and the signin also worked.
I then have proceeded to flutter build appbundle and upload the said bundle to the PlayStore. now none of my users can login into the app.
I ran gradlew signingReport
and a bund of sha1 keys were shown. Most of them where repetition so I used both the different ones that showed on the screen (one for debug other for release) and added them to my firebase config project
When someone tries to login the google popup showing the gAccounts on the phone appear for you to choose one or use a different one. when you press the one you want it disapears but it doesn't log you in. what am I missing?
This is for the debug sha1 key MAC
keytool -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore
if you wants to generate the relase sha1 key Just replace androiddebugkey with your alisa name and ~/.android/debug.keystore with you keystore file path
For e.g.
keytool -exportcert -list -v -alias tashmania -keystore /Users/SunnySaini/Documents/git/tashmania/app/jks/tashmania.jks
Am trying to decrypt an encrypted file, I have all the keys in place (secret and public), I don't know why its not generating output file. Following are the commands am running. I know there are several post already there but I cant refer them until and unless any error flashes on my command prompt.
gpg --list-secret-keys
Its listing secret keys
gpg --list-keys
Its listing all keys
gpg --import "c:\folder_location\name_PublicKey.gpg"
successfully imported keys
gpg --batch --yes --passphrase my_passphrase --local-user "mycomp name
" -o "c:\folder_location\filenameTEST.txt" -d
"c:\folder_location\ENCRYPTEDFILE.txt.gpg"
Am not able to decrypt file on command line, There is no error reported on command prompt. Command remains Active all the time, needed force close.
Anything am missing here to check? any suggestions?
There was no issue with my command, actual problem was CR and LF control characters (new line). When I removed those characters, decryption worked without any errors! GPG never detected these characters and statement got parsed without any error, and later command froze without any error/output.
While trying to get the debug certificate fingerprint to be used in firebase we got an error claiming that keytool is not recognized, but we downloaded jdk and set the path then this error appeared:
-alias : The term '-alias' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of
the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystor ...
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (-alias:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
It appears you're not typing the full command. You should be running:
keytool -list -v -keystore %USERPROFILE%\.android\debug.keystore -alias androiddebugkey -storepass <store_password> -keypass <key_password> (Where store_password and key_password default to android.
The output of this command will include the SHA1 and SHA256 fingerprints of your certificate which you enter in the Firebase console.
You should use this command, it will work!
keytool -list -v -alias androiddebugkey -keystore "%USERPROFILE%/.android/debug.keystore"
Password will be: android
keytool -list -v -keystore %USERPROFILE%.android\debug.keystore -alias androiddebugkey -storepass android -keypass android
im trying to generate a release certificate fingerprint for a google sign in with firebase and this is my problem
this is my command:
keytool -exportcert -list -v \
-alias goworkkey -keystore /home/ryan/Desktop/keystore.jks
This is my result:
keytool error: java.lang.Exception:
Only one command is allowed: both -exportcert and -list were specified.
if i try this:
sudo keytool -list -v -keystore /home/ryan/Desktop/keystore.jks -alias googlekey -storepass android -keypass android
I get this:
keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect
java.io.IOException: Keystore was tampered with, or password was incorrect
at java.base/sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:780)
at java.base/sun.security.util.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:222)
at java.base/java.security.KeyStore.load(KeyStore.java:1479)
at java.base/java.security.KeyStore.getInstance(KeyStore.java:1807)
at java.base/java.security.KeyStore.getInstance(KeyStore.java:1687)
at java.base/sun.security.tools.keytool.Main.doCommands(Main.java:908)
at java.base/sun.security.tools.keytool.Main.run(Main.java:397)
at java.base/sun.security.tools.keytool.Main.main(Main.java:390)
Caused by: java.security.UnrecoverableKeyException: Password verification failed
at java.base/sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:778)
... 7 more
I had the same problem while running the command:
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v -storepass android
If I changed it to this:
keytool -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore
I was properly asked for a password, as explained here, https://developers.google.com/android/guides/client-auth
and all was well.
Do you still have the problem? As this youtube video go to the "Gradle projects" tab (to the right) -> Tasks -> android -> double click on signingReport and you will get it for all your variants: Take the SHA1 which have the Variant and Config type debug
I hope it will be useful for you!
Click on Project Structure which is on the right of Android Studio.
Click on Ads.
Tick AdMob
Click OK button
Wait for sync or manually sync if necessary.