I\'m trying to find the SHA1 hash of my signature key store on macos sierra using the following comand:
keytool -exportcert -alias androiddebugkey -keystore
I found that the problem comes from latest version of Keytool in JDK8.151 and JDK9. By default keytool use system default language and that seems to do not properly work anymore on some languages (in my case French).
It was enough to force output in english by using the parameter -J-Duser.language=en
So try using this command line instead:
keytool -J-Duser.language=en -exportcert -alias androiddebugkey -keystore $HOME/.android/debug.keystore -list -v -storepass android
See also my answer here: https://stackoverflow.com/a/47181882/5292951