The process to convert .keystore or .js which is generated by keytool to .key
Keytool had generated .keystore secret key. and .keystore secret key generated csr file . finally, I submited
csr file to GoDaddy to download website certificate.
But the front web server is Apache, So I need certificate in Apache type, and then I must import
secret key to certificate. but secret key .keystore can’t support Apache.
So I need to convert .keystore to the mode .key which can be supported by Apache.
Process of convertion :
tomcat.keystore —> keystore.P12 —-> apache.key
details:
keytool -importkeystore -srckeystore tomcat.keystore -destkeystore keystore.p12 -deststoretype PKCS12
openssl pkcs12 -in keystore.p12 -nocerts -nodes -out apache.key
Convert finished, now I can import apache.key to this Apache website certificate.