我正在尝试使用 keytool 函数创建一个公钥/私钥对,以便我可以将 Android 应用程序提交到 Google Play。当我尝试使用我制作的密钥对应用程序进行签名时,我从 jarsigner 收到此错误
jarsigner: Certificate chain not found for: SHA1withDSA.
SHA1withDSA must reference a valid KeyStore
key entry containing a private key and corresponding public key certificate chain.
当我尝试使用 RSA 时也是如此。当我查看密钥库的密钥时,我只看到
条目类型:PrivateKeyEntry
不是公钥和私钥。
我用来创建密钥的命令是
keytool -genkey -keystore nameofkeystore.keystore
-alias coffitivity -keypass *passwordommitted* -storepass *thepasswordommitted*