现在我要获得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)。 –