Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello:
I generated a new SSL certificate from CA. It was delievered as .pem file. I converted it to .der file (so that it can be imported into jks)
openssl x509 -outform der -in mycertificate.pem -out mycertificate.der
I used following command to import the certificate into a new keystore:
keytool -import -alias push -keystore mykeystore.jks -file mycertificate.der
When I see the contents of the jks file, I see my imported certificate correctly:
keytool -keystore mykeystore.jks -list
Now, I edited the <karaf container>/etc/org.ops4j.pax.web.cfg
org.osgi.service.http.port=8040 org.osgi.service.http.port.secure=9001 org.osgi.service.http.secure.enabled=true org.ops4j.pax.web.ssl.keystore=/path_to_mykeystore.jks org.ops4j.pax.web.ssl.keypassword=<my keystore password>
I restarted the container. When I am accessing the web console at:
https://<mydomain>:9001/system/console nothing shows up. I see that 9001 port is not listening on my side. What am I doing wrong here?
Also, I am not seeing any logs in Runtime container logs.
Thanks in advance.
Hi @Calvin Plumberg
I'd strongly suggest using an Open Source app "KeyStore Explorer" that makes it all so much easier.
Thanks