2017-10-10 1 views
0

Vous avez tenté d'installer un certificat SSL pour une application Web exécutée sur Tomcat.Installation du certificat SSL - Erreur DerInputStream.getLength(): longueurTag = 94, trop grand

quand je lance cette commande je reçois l'erreur suivante:

D: \ jdk1.6.0_30 \ bin> keytool -import -alias racine -keystore tomcat2.keystore -trust cacerts -file D:/SSL /gdroot-g2.crt Entrez le mot de passe keystore:

erreur keytool: java.security.cert.CertificateException: Impossible d'initialiser, ja va.io.IOException: DerInputStream.getLength(): lengthTag = 94, trop grand .

Répondre

1

le certificat est attendu par défaut ayant le format DER

vous pouvez importer le fichier pem/crt avec le paramètre -rfc

keytool -import -alias root -keystore tomcat2.keystore -trustcacerts -rfc -file D:/SSL/gdroot-g2.crt