SilverWebBuzz

net::err_cert_common_name_invalid

neterr_cert_common_name_invalid
Get in Touch With Us
Submitting the form below will ensure a prompt response from us.

    The net::ERR_CERT_COMMON_NAME_INVALID error typically means the SSL certificate on the website doesn’t match the domain you’re trying to visit. In simple terms, the browser thinks you’re talking to one site, but the certificate says you’re talking to another.

    Why It Happens:

    1. Mismatch between domain and certificate.
      Example: You’re visiting https://example.com but the SSL cert is for https://www.example.com.
    2. Self-signed or invalid certificate (often happens in dev environments).
    3. Missing Subject Alternative Names (SANs) in the cert.
    4. Trying to access a site by IP address instead of domain name.

    If You're the Developer / Admin:

    1. Check the certificate:

    Run this in the terminal to inspect the cert:
    bash
    openssl s_client -connect yourdomain.com:443

    2. Verify the CN and SAN values in your cert match your domain exactly.

    3. Fix your NGINX / Apache config if you’re serving multiple domains and one cert.

    4. Use a trusted certificate authority (Let’s Encrypt is free and easy to use).

    5. Local development:

    If you’re working on localhost or a dev server, consider using mkcert to create trusted local certs.

    If You're Just Visiting a Site:

    • Try visiting with https://www.example.com instead of just example.com (or vice versa).
    • Make sure your system time is correct.
    • Clear your browser cache or try another browser.
    • If it’s your own site, reach out to your hosting provider.

    About Author

    Bhavik Koradiya is the CEO / Co. Founder of Silver WebBuzz Pvt. Ltd. Having 18+ years Experience in LAMP technology. I have expert in Magento, Joomla, WordPress, Opencart, e-commerce and many other open source. Specialties: Magento, WordPress, OpenCart, Joomla, JQuery, Any Open source.

    Related Q&A

    SCP Command

    SCP Command

    SCP Command Get in Touch With UsSubmitting the form below will ensure a prompt response from us. The scp (secure...

    Read More
    Scroll to Top