Certificate output in plaintext

Last updated:

CERT

Issue

“x509: certificate relies on legacy Common Name field” error

Fix

cert needs to be reissued to include the subjectAltName property, and should be added directly when creating an SSL self-signed certificate using openssl command, by specifying an -addext flag.

-addext "subjectAltName = DNS:domain-name.com"
openssl x509 -in server.crt -noout -text

references:

  1. GENERAL: What should I do if I get an “x509: certificate relies on legacy Common Name field” error? (jfrog.com)