我在本地计算机上生成证书时遇到以下错误.
C:\Users\abc>keytool -genkey -alias tomcat -keyalg RSA
Enter keystore password:
keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect
Run Code Online (Sandbox Code Playgroud)
我认为在jdk版本中存在一些问题.我在我的同事机器上运行了相同的命令,它运行正常.
请分享您的意见.
我正在尝试为Google Maps API签署我的Android应用程序的发布版本(调试已签名正常):
keytool -list -alias cancertrials -keystore /Users/syalam/Documents/workspace/Cancer_Trials/keys/release -storepass android -keypass cancertrials
Run Code Online (Sandbox Code Playgroud)
但我得到错误:
java.io.IOException: Keystore was tampered with, or password was incorrect
Run Code Online (Sandbox Code Playgroud)
我很肯定密码是正确的,因为当我尝试在Eclipse中导出我的应用程序时,它会询问密钥库和密码,并且我正确输入密码.
不知道为什么我不签这个?我需要在发布模式下显示Google地图(在调试模式下工作).