I am trying to import a certificate and a key file into the keystore but I\'m unable to do that.
How can I create a keystore by importing both an existing certificat
In addition to @Bruno's answer, you need to supply the -name for alias, otherwise Tomcat will throw Alias name tomcat does not identify a key entry error
-name
Alias name tomcat does not identify a key entry
Sample Command: openssl pkcs12 -export -in localhost.crt -inkey localhost.key -out localhost.p12 -name localhost
openssl pkcs12 -export -in localhost.crt -inkey localhost.key -out localhost.p12 -name localhost