Question

Can we modify common name in an existing keystore?

Posted March 2, 2017 5.5k views
CentOSJava

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.

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.

×
1 answer

@juhikude12

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.

Submit an Answer