2022年1月

set exe="C:\Program Files\Java\jre1.8.0_231\bin\keytool.exe"
set openssl="C:\Program Files\OpenSSL-Win64\bin\openssl.exe"
set file_name=google_play.der
set password=android

%openssl% sha1 -binary %file_name%| %openssl% base64
pause

下面是将本地证书转:
set exe="C:\Program Files\Java\jre1.8.0_231\bin\keytool.exe"
set openssl="C:\Program Files\OpenSSL-Win64\bin\openssl.exe"
set file_name=key.jks
set password=111111111

%exe% -exportcert -alias username -keystore %file_name% -storepass %password%| %openssl% sha1 -binary | %openssl% base64

pause