Can we modify common name in an existing keystore?

March 2, 2017 4k views
Java CentOS

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

1 comment
  • 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.

1 Answer


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.

Have another answer? Share your knowledge.