I am a dabbling into Node JS. I got a requirement where Node JS(using 'request' module) had to call Java REST API via HTTPS.
As explained in given URL, I created a CA file (ca.key, ca.pem), certs for server (server1.key, server1.pem) & client (client1.key, client1.pem) and I am able to communicate between two Node JS apps (server & client).
Now I want to access a JAVA REST API running on Apache Tomcat from my Node JS client. So now how can I import my Node JS server keys (server1.key, server1.pem) & ca.pem to Tomcat Keystore? Can I directly include these server1.key, server1.pem & ca.pem into Tomcat or did I had to convert them to .p12 or .jks and import them?