切换到秘钥所在目录,例如:cd C:\Program Files\Java\jdk1.8.0_171\bin
执行命令:keytool -genkey -alias demo.keystore -keyalg RSA -validity 20000 -keystore demo.keystore
demo:秘钥文件名
SHA1值获取命令:keytool -list -v -keystore 秘钥文件路径
示例:C:\Program Files\Java\jdk1.8.0_171\bin>keytool -list -v -keystore F:\wgx\anzhuo\miyao\demo.keystore