库密码太短 - 必须至少6个字符进口

问题描述:

我想用https://*.com/a/7094044/384674导入PEM为P12,但密钥存储密码是5个字符,密钥工具抱怨它需要是6: -/库密码太短 - 必须至少6个字符进口

keytool -import -alias alias -keystore ./trust.p12 -storetype PKCS12 -file new.pem 
Enter keystore password: 
Keystore password is too short - must be at least 6 characters 

我发现的是,当您指定-storepass作为参数时,验证无效。