Can we modify common name in an existing keystore?

The keystore i have has different common name for issuer and owner. Can I change it to hostname of the server?


I don’t know how keystore works in Java, but I’m pretty sure you can’t, since that would invalidate the certificate - based on how certificates work and how they’re encrypted with that information.

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.


To change the Common Name in the SSL Certificate, you’ll need to generate a new CSR using the hostname and go through the issue/installation process again.

You can’t change the Common Name once an SSL Certificate has been issued.