Ich versuche, ein vertrauenswürdiges Zertifikat in die Datenbank zu importieren. Java cacerts keystore aber ich habe ein Problem. Ich habe versucht, die vorhandenen vertrauenswürdigen Zertifikate aufzulisten, und es scheint, dass der Keystore nicht passwortgeschützt ist.
$ keytool -list -keystore cacerts
Enter keystore password:
***************** WARNING WARNING WARNING *****************
* The integrity of the information stored in your keystore *
* has NOT been verified! In order to verify its integrity, *
* you must provide your keystore password. *
***************** WARNING WARNING WARNING *****************
Keystore type: JKS
Keystore provider: SUN
Your keystore contains 76 entries
Ich habe versucht, ein vertrauenswürdiges Zertifikat zu importieren:
$ keytool -importcert -alias "JiraCert" -file /root/c9ssl.crt -keystore /etc/java-6-sun/security/cacerts
Enter keystore password:
Keystore password is too short - must be at least 6 characters
Enter keystore password:
Keystore password is too short - must be at least 6 characters
Enter keystore password:
Keystore password is too short - must be at least 6 characters
Too many failures - try later
Ich habe auch versucht, das Passwort von "none" in ein anderes zu ändern:
$ keytool -storepasswd -keystore cacerts.back
Enter keystore password:
Keystore password is too short - must be at least 6 characters
Enter keystore password:
Keystore password is too short - must be at least 6 characters
Enter keystore password:
Keystore password is too short - must be at least 6 characters
Too many failures - try later