Introduction
In a organization its common to have internal web application which uses the certificate provided by Active Directory Certificate Services (AD CS). The information about generating these internal certificate can quickly be lost since its something that people generate once in 1, 2, and 3 years.
While generating the certificate the primary issue that I was facing was related to the error ERR_CERT_COMMON_NAME_INVALID and after spending hours and hours I managed to come with the solution to solve the problem.
What was the issue?
The reason the internal certificate was throwing the error message ERR_CERT_COMMON_NAME_INVALID is because the Common Name and DNS had to contain the domain name. And I had only applied the domain name to DNS and not Common Name…
Issuing SSL Certificate
-
Connect to AD CS Server.
-
Open the
certlm.mscapplication.
-
Inside
certlm.mscopen the folders Certificates (Local Computer) -> Personal -> Certificates and click on All Tasks -> Request New Certificate.
-
On Certificate Enrollment Window click on Next.

-
Click on Next again.

-
Select the Active Directory Enrollment Policy.

-
Inside the Certificate Properties configure the Common Name and DNS to be internal domain.

-
Click on Enroll.

Exporting SSL Certificate
-
Open
certlm.mscapplication. -
Go to Certificates - Local Computer -> Personal -> Certificates.

-
Click on All Tasks -> Export.

-
On Certificate Export Wizard click on Next.

-
On Export Private Key select Yes, export the private key.

-
Use default export settings and click on Next.

-
Click on Password and enter a secure password and click on Next.

-
Choose a filename and export location.

-
Click on Finish.

Conclusion
While generating a certificate the most important part is to ensure the Common Name and DNS is the internal domain name otherwise the ERR_CERT_COMMON_NAME_INVALID error message will be thrown. Hopefully, someone with similar issue will solve their issues with this article.