現在我要獲得android調試密鑰的簽名。Openssl的結果是不匹配的cmd和windows的電源外殼
在windows命令(cmd.exe的)
keytool -exportcert -alias androiddebugkey -keystore debug.keystore | openssl.exe sha1 -binary | openssl.exe base64
Enter keystore password: android
Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore debug.keystore -destkeystore debug.keystore -deststoretype pkcs12".
uQzK/Tk81BxWs8sBwQyvTLOWCKQ=
在windows電源外殼
keytool -exportcert -alias androiddebugkey -keystore debug.keystore | .\openssl.exe
sha1 -binary | .\openssl.exe base64
Enter keystore password: android
Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore debug.keystore -destkeystore debug.keystore -deststoretype pkcs12".
Pz8/Pwo/MDNuPyE/Pys/Pz8/Sm8K
兩個結果不匹配。
cmd.exe的:uQzK/Tk81BxWs8sBwQyvTLOWCKQ =
電源外殼:Pz8 /的Pwo/MDNuPyE/PYS/Pz8/Sm8K
爲什麼? 發生了什麼?
1此問題也被在[這個問題]長度討論(https://github.com/PowerShell/PowerShell/issues/1908)。 –