Answer the question
In order to leave comments, you need to log in
SSL for tomkat?
Hello, I can not bind the chain of intermediate certificates.
The fact is that I have a Tomcat web server (embedded, used by the Spring Boot framework for the Java language),
and it only reads kestorage created by the keytool utility.
The utility has a limitation, it cannot add an already existing private key to the storage.
So I first use openssl to import an existing certificate in PKCS12 format:
openssl pkcs12 -export -in certificate.crt -inkey private.key -out keystore.p12 -name my.centr-i.ru -CAfile ca.pem -caname root
keytool -importkeystore -deststorepass *** -destkeystore keystore.kdb -srckeystore keystore.p12 -srcstoretype PKCS12 -srcstorepass *** -alias my.centr-i.ru
keytool -import trustcacerrts intermediate.crt -keystore keystore.kdb
java.lang.Exception: Input not an X.509 certificate
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question