What is the process to replace the current ssl certificate with new one?
I have .pfx file . I can convert to pem using below command.
openssl pkcs12 -in file.pfx -out file.nokey.pem -nokeys
openssl pkcs12 -in file.pfx -out file.withkey.pem
openssl rsa -in file.withkey.pem -out file.key
cat file.nokey.pem file.key > file.combo.pem
I am not sure about the jks file that is required and mentioned in the config. Do I need to create them ? if yes what are the steps.
FInd the JKS as mentioned here * To configure HTTPS-only access to Bitbucket Server
Hello Gaurav, Your .pem is an OpenSSL cert and jks is a Java Key Store.
So you would use the pem file/cert for OpenSSL i.e Apache HTTP server
For Tomcat you want to use the JKS as indicated in the link above. You probably are using both types of technology: Proxy or Load Balancer = pem, Bitbucket App = user Java key and trust store.
Anyhow you can also convert your pem to be imported into your java key store and java truststore
https://docs.oracle.com/cd/E35976_01/server.740/es_admin/src/tadm_ssl_convert_pem_to_jks.html
Hope this helps
Lonnie
Thanks for the information but the question is that If I convert the JKS to pem then what are the instruction that I need to follow to import the certificate.
The documentation is little confusing.
1. Once I create the jks. Should I just replace the new jks with the old one and update the password and alias and then restart the tomcat service.
Beside above step do I need to do anything else.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So I am not sure what the reason is for you to replace the cert or key in the first place.
It's possible that you only need to deal with the OpenSSL, i.e the proxy/load balancer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have replaced the certs thanks. I need to replace it bcoz we were using SSL certs for https.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.