Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to obtain SHA-1 Fingerprint for keystores which are created by Xamarin Studio?

When you sign and distribute your Xamarin Android apps the wizard helps you create keystore for your app. However, wherever I looked on my mac I could not find the actual .keystore file anywhere. So how am I supposed to get the SHA-1 fingerprint for that keystore?

like image 935
Ege Aydın Avatar asked Nov 11 '15 19:11

Ege Aydın


People also ask

How do you get SHA1 in xamarin?

SHA1 fingerprints are stored within the same keystore files. Visual studio has an unique feature to open such files. Just double click the file after creating it inside Xamarin. It will give you the SHA1 Fingerprint.

How do I get a SHA1 signing certificate?

Open a terminal and run the keytool utility provided with Java to get the SHA-1 fingerprint of the certificate. You should get both the release and debug certificate fingerprints. Note: When using Play App Signing, the upload key certificate will be different than the app signing key certificate.

How do I create a keystore in Visual Studio?

In addition to, I tried to create a new keystore using Visual Studio. I went to tools>Android>Publish Android App and I created a keystore and it appeared in path that I specified. Then I went back to that guide and continued from Sign the APK.


3 Answers

SHA1 fingerprints are stored within the same keystore files. Visual studio has an unique feature to open such files. Just double click the file after creating it inside Xamarin. It will give you the SHA1 Fingerprint.

enter image description here

check out the pic

like image 106
Harshith C Avatar answered Oct 18 '22 01:10

Harshith C


For windows users,

Go to this path or where ever you have your keytool.exe file

C:\Program Files\Java\jre7\bin

Hold shift key and right click -> then select Open command window here

After commandline open paste this command

keytool.exe -list -v -keystore "%LocalAppData%\Xamarin\Mono for Android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

Official document here - https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/MD5_SHA1/

like image 45
Ranjithkumar Avatar answered Oct 18 '22 01:10

Ranjithkumar


This questions a few months old, but in the event others were stymied by this and end up here - here's instructions for mac users:

When you use the Android Signing wizard it asks for an alias and password.

Generate the SHA1 by entering by opening a terminal window and entering:

keytool -list -v -keystore /Users/[USERNAME]/Library/Developer/Xamarin/Keystore/[ALIAS]/[ALIAS].keystore -alias [ALIAS]

It will then prompt you for the password and if happy with that, will return certificate info and fingerprints (including the SHA1).

Note two passwords aren't needed as mentioned in the Xamarin documentation here.

(And if like me you were searching in Finder for the keystore file you created with no luck, it's because the Library folder is hidden)

like image 2
resedasue Avatar answered Oct 18 '22 01:10

resedasue