I'm having trouble getting SHA1 certificate with keytool

前端 未结 1 1776
被撕碎了的回忆
被撕碎了的回忆 2020-12-29 06:13

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          


        
相关标签:
1条回答
  • 2020-12-29 06:53

    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

    0 讨论(0)
提交回复
热议问题