Tomcat to Apache SSL

Windows example of converting a Tomcat SSL certificate to Apache :

keytool -storepass 123 -keystore noodle.jks -export -alias domain.tld -rfc -file server.crt

keytool -storepass 123 -keystore noodle.jks -export -alias root -rfc -file server-ca.crt

keytool -importkeystore -srckeystore noodle.jks -srcalias domain.tld -srcstorepass 123456 -deststorepass 123456 -destkeystore apache.p12 -deststoretype PKCS12
openssl pkcs12 -in apache.p12 -nocerts -nodes > server.key
delete apache.p12

Official keytool manual

Official openssl manual