SSL Certificate Errors: ERR_CERT_DATE_INVALID, AUTHORITY_INVALID, COMMON_NAME_INVALID, and How to Fix Them
How to understand browser warnings, find an expired or untrusted certificate, check SAN and the chain of trust, and fix HTTPS on the server.
1. Why Your Browser Warns of an SSL Problem

A warning about an insecure connection doesn't appear because the browser “didn't like the site.” When you open an HTTPS site, the browser receives the server certificate and performs several independent checks. It checks the validity period, compares the domain name with the names allowed by the certificate, attempts to build a chain to a trusted certificate authority, and applies its own security rules. A failure at any one of these steps can prevent the page from loading.
Most common SSL errors fall into three groups: incorrect date, untrusted chain and name mismatch. TLS protocol errors, incorrect CDN configuration, antivirus software intercepting HTTPS, DNS failures, or device restrictions can also contribute. The exact error code and information about the certificate actually served to visitors are more useful than the general message “Your connection is not private.”
Important rule: start troubleshooting by checking where exactly the failure occurs. If the warning appears on all phones and computers, the problem is likely on the website's side. If it occurs on only one device, check the date, system certificates, proxy, VPN, and antivirus software. If only a specific address such as www.example.ruis affected, check the SAN and virtual host settings.
2. Key Errors at a Glance: What Each Code Means
Chrome, Firefox, Edge, and Safari use different error codes. One browser may describe the problem in plain language, while another displays a technical code. The most useful indicators are listed below. This table doesn't replace troubleshooting: for example, an untrusted certificate may indicate either an incomplete chain or corporate traffic interception.
The label NET:: is often used in Chromium-based browsers, while the codes SEC_ERROR_... and SSL_ERROR_... are common in Firefox. Copy the exact error name without changes: this makes it much faster to find the cause. Don't judge the security of a connection solely by the color of the address bar icon—browser interfaces change.
3. ERR_CERT_DATE_INVALID: Certificate Expired or Not Yet Valid

ERR_CERT_DATE_INVALID means that the certificate is not valid for the current time. The certificate contains two fields: notBefore — the start of the validity period and notAfter — the end of the validity period. The check is performed against the device's system time. If the current time is before the start or after the end of the validity period, the browser doesn't consider the certificate valid.
A common situation: the certificate has already been renewed, but the web server is still serving the old file. The administrator sees the new expiration date in the control panel, while visitors see a warning. There's no contradiction: issuing a new certificate and installing it on the HTTPS server are separate steps. After updating, reload the server configuration and check the response externally.
The reverse can also happen: the server is configured correctly, but the user's date, time zone, or clock is wrong after a battery replacement. So first compare the device clock with an independent time source. Never change the server clock “to match the certificate expiration date”: this will disrupt logs, schedules, token validation, and other site functions.
echo | openssl s_client -connect example.ru:443 -servername example.ru 2>/dev/null | openssl x509 -noout -dates
In the command below, example.ru is replaced with the domain being checked. The command displays the dates of the certificate sent by the server, not of a certificate stored somewhere in the administrator's folder. When troubleshooting, check both addresses, with www and without it.
4. ERR_CERT_AUTHORITY_INVALID: Issuer Is Not Trusted

ERR_CERT_AUTHORITY_INVALID means that the browser couldn't verify trust in the certificate chain. Public certificates are usually signed by an intermediate certificate authority, whose authority leads back to a root certificate trusted by the browser or operating system. If the chain is broken, the certificate may be within its validity period and match the domain name, but the connection will still be untrusted.
Causes include a self-signed certificate, a missing intermediate certificate on the server, use of an internal certificate authority without an installed trusted root, and an old system with an outdated set of root certificates. Corporate networks and software that decrypt HTTPS and substitute their own certificate should also be considered. This behavior should be checked with a system administrator; don't blindly install any root certificate you are offered.
If the error affects all visitors, the complete set of certificates on the server is usually checked. In Nginx, a public certificate is often configured using a file named fullchain.pem, which contains the site certificate and the necessary intermediate certificates. The path and format depend on how the certificate was issued; never copy someone else's certificate or private key.
openssl s_client -connect example.ru:443 -servername example.ru -showcerts -verify_return_error </dev/null
The utility displays information about the chain served by the server and its validation in the local OpenSSL environment. The message Verify return code: 0 (ok) is a useful indicator, but it doesn't guarantee the same result in every browser and on every device: trust stores and policies may differ.
5. ERR_CERT_COMMON_NAME_INVALID: Certificate Issued for a Different Domain

ERR_CERT_COMMON_NAME_INVALID means that the name checked by the browser doesn't match the names listed in the certificate. The historical name of the code contains COMMON_NAME, but modern browsers primarily rely on the Subject Alternative Name extension—abbreviated as SAN. For example, a certificate for example.ru does not have to match the address www.example.ru, if the second address is not included in SAN.
A wildcard certificate of the form *.example.ru usually covers shop.example.ru and mail.example.ru, but does not cover example.ru and api.dev.example.ru. For the latter, a different pattern or a separate name is needed. The error can also occur when one IP address serves dozens of sites and the client receives a certificate for a neighboring virtual host because of SNI configuration or the default server selection.
The configuration should be checked especially carefully after moving a domain, replacing a CDN, adding a new subdomain, or changing DNS. An administrator may check only the main address, even though visitors reach an old variant with www. Any public URL targeted by real links and redirects must be covered by the correct certificate.
echo | openssl s_client -connect example.ru:443 -servername example.ru 2>/dev/null | openssl x509 -noout -ext subjectAltName
The command shows the SAN list. For a stricter check of a specific name, OpenSSL supports the parameter -verify_hostname, and selecting the correct virtual server requires -servername. When comparing domain names, it is important not to confuse a URL with the scheme https:// and the hostname itself.
6. Checking SSL in Chrome, Edge, Firefox, and Safari
The most accessible way to check is to open the HTTPS address and view the connection details through the site information menu. In Chromium-based browsers, the interface may use a site settings icon instead of the familiar green padlock. In Firefox, certificate details are available through the connection information panel, while Safari provides its own way to view security settings. The exact location of menu items depends on the browser version.
If a warning appears, note the error code and page address. The next step is to check whether the problem occurs in another browser, on another device, and over another network. This simple check helps distinguish a local computer issue from a site error. Do not enter passwords or payment details on a page if the browser could not validate its certificate.
Browser information is useful, but a single screenshot is not enough. It does not show the settings of all CDN nodes, the certificate’s validity at another IP address, or the reasons automatic renewal failed. For serious issues, browser checks should therefore be supplemented with server diagnostics and logs.
7. Diagnosing with OpenSSL: five useful commands
OpenSSL lets you view the certificate the server is currently presenting. You do not need the site’s private key. The commands below can be run on your own computer or on a server you administer. The examples are for Linux and macOS; on Windows, OpenSSL may be available through a separate installation or a compatible environment.
1. Check the validity dates:
echo | openssl s_client -connect example.ru:443 -servername example.ru 2>/dev/null | openssl x509 -noout -dates
2. View the name and issuer:
echo | openssl s_client -connect example.ru:443 -servername example.ru 2>/dev/null | openssl x509 -noout -subject -issuer
3. View SAN:
echo | openssl s_client -connect example.ru:443 -servername example.ru 2>/dev/null | openssl x509 -noout -ext subjectAltName
4. Output the chain presented by the server:
openssl s_client -connect example.ru:443 -servername example.ru -showcerts </dev/null
5. Check the specified name:
openssl s_client -connect example.ru:443 -servername example.ru -verify_hostname example.ru -verify_return_error </dev/null
Commands using a pipeline openssl x509 assume that the certificate is retrieved successfully. If the connection fails, diagnostics should start with the error s_client: the port may be unavailable, the TLS handshake may fail, or the server may not respond at all. Suppressing stderr in the example is convenient for concise output, but when debugging, remove it to see the root cause.
8. Finding errors with curl and DNS checks
curl is useful because it makes a connection as an HTTP client and usually displays certificate errors without a graphical interface. Unlike opening the site in a browser, the command lets you quickly repeat a request and save diagnostic output for the administrator. If a proxy is in use, especially a corporate one, the request route may differ from the browser’s.
curl -Iv https://example.ru/
# Просмотр DNS-адресов:
nslookup example.ru
If the check returns a TLS error, first make sure DNS points to the location where the correct certificate is installed. After a hosting change, some users may reach the old IP because of DNS caching or differing A and AAAA records. A site may have a working IPv4 configuration and, at the same time, an incorrect certificate over IPv6.
For a confirmed IP, you can temporarily direct a diagnostic request to a specific address without changing public DNS:
curl -Iv --resolve example.ru:443:203.0.113.10 https://example.ru/
The address 203.0.113.10 here is for illustration; it comes from the documentation IP range. Substitute a real IP accessible to the administrator. The flag --insecure is sometimes used in lab diagnostics to let the request continue, but it disables certificate verification and must not become the way a site or application operates permanently.
9. Why the SSL certificate chain may be incomplete
A public certificate is usually issued not directly by a root certification authority, but by an intermediate one. The server must send the necessary intermediate certificates to the client so it can build a chain of trust. A server that sends only the leaf certificate may work in one browser because intermediate certificates are cached, but fail in another browser or on a new device.
To fix the problem, obtain the correct chain from your certificate authority or use the full bundle prepared by the issuance client. Do not assemble a chain by arbitrarily concatenating PEM files. The order of the certificates and their correspondence to the specific issuance matter. Having several old intermediate certificates does not make the configuration more reliable.
After making changes, check the web server configuration and only then reload it carefully. Run the diagnostics again using the site address. If the site uses a CDN, determine separately where the error occurred: browser — CDN or CDN — origin server.
10. What to fix in the Nginx configuration
In Nginx, the certificate is selected in the context of the corresponding serverblock on port 443. If there are many sites, server_name and SNI play a significant role. A mismatch between the address and the certificate cannot be fixed with an additional HTTP redirect: the browser checks the certificate before receiving the HTTP response.
For a site with a certificate issued by Certbot, the configuration may look like this:
server {
listen 443 ssl;
server_name example.ru www.example.ru;
ssl_certificate /etc/letsencrypt/live/example.ru/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.ru/privkey.pem;
# Остальные настройки сайта опущены
}
This is a snippet to illustrate the purpose of the directives, not a universal configuration for a production server. Before making changes, save a copy of the current files and check that the specified path exists. The key privkey.pem is secret; its contents must not be sent in a public chat, uploaded to an open repository, or placed in a directory accessible over HTTP.
sudo nginx -t
sudo systemctl reload nginx
The first command checks the syntax and availability of the required files; the second reloads the settings if the check succeeds. Then request the certificate again from outside the server. If Nginx runs inside a container, the service name, files, and reload method differ from the example.
11. How to fix certificate errors in Apache
In Apache, make sure the required virtual host accepts connections on port 443, has the correct names, and points to valid certificate files. The error often appears when settings are copied from another site: the certificate was issued for one domain, while the directives ServerName and ServerAlias are left over from another.
<VirtualHost *:443>
ServerName example.ru
ServerAlias www.example.ru
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/example.ru/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example.ru/privkey.pem
# DocumentRoot и остальные директивы настраиваются отдельно
</VirtualHost>
For Apache 2.4 with mod_ssl this snippet illustrates the general principle. On managed hosting, manual editing may not be available; in that case, make changes through the provider’s control panel. On Debian/Ubuntu, a syntax check often looks like this:
sudo apachectl configtest
sudo systemctl reload apache2
On other distributions, the service may be called httpd. After reloading, check that the server actually presents the expected certificate for the required domain. If one IP serves many sites, also check how the virtual host is selected through SNI.
12. SNI, multiple sites on one IP, and the wrong certificate
SNI is a TLS extension that lets the client send the target site name during the connection setup. This allows the server to select the right certificate before the HTTP request. If a site uses a shared IP, incorrect SNI configuration can cause visitors to receive a certificate for a neighboring project.
It is important not to rely only on the command openssl s_client -connect IP:443 without a server name. In that case, the server may select the default certificate, which does not belong to the domain being checked. To check the actual site, use -servername example.ru and, if necessary, -verify_hostname example.ru.
When diagnosing the issue, check the settings of each virtual host, the domain’s association with the specific site in the hosting control panel, and the reverse proxy rules. When adding a site to a server, do not simply copy the certificate from the previous domain: the new name needs a certificate that actually includes it in SAN.
13. CDN, Cloudflare, load balancer: where the problem is
If a site uses a CDN or load balancer, HTTPS may operate across multiple segments. The user connects to an edge node, which then connects to the origin server. The public-facing side may therefore have one certificate, while the origin side has another. Both must match the chosen architecture and security policy.
If the browser displays a warning, first check the certificate presented at the public address. If it is valid but the CDN reports an origin connection error, check the origin server’s separate certificate and the provider’s TLS verification mode. Temporarily disabling strict verification between the CDN and origin does not fix the error and can weaken channel security.
When moving a site, check more than just the main entry point. Test over IPv4 and IPv6, with www and without, across working subdomains and different delivery points. An error at one node may affect only some visitors and therefore go unnoticed for a long time.
14. What to do if the error occurs on only one device
A local problem differs from a server-side problem in that the same site opens successfully on another computer or smartphone. One of the first things to check is the date, time, and time zone. If they are incorrect, even a valid certificate may appear expired or not yet valid.
The next step is to update the browser and operating system. Older devices may not have the required trusted roots or modern TLS algorithms. Update system components through official mechanisms; do not download random “certificate fixes” from the internet. The cause may also be antivirus software, a corporate filter, VPN, proxy, or Wi-Fi network with a captive portal.
If a login page appears on a public network, open the network’s authorization page through the provided mechanism. This is not a reason to ignore a certificate error on the target site. If you suspect the connection is being intercepted, do not enter passwords or payment details until the cause is determined.
15. Why you should not simply disable SSL verification
A certificate warning is not a decorative pop-up. Ignoring it can expose the connection to interception and the data you send to third parties. That is why general advice such as “click through anyway,” “disable verification in the browser,” or “run curl with -k” is not suitable for ordinary use of a site.
Exceptions are possible in isolated test environments that use their own certificate authority and where trust is configured deliberately. But such exceptions must be local, limited, and documented. For a public site, the right solution remains issuing a suitable certificate, installing the full chain, and configuring the web server.
Installing an unknown root certificate at the request of a random site is especially dangerous. Such a root can make it possible to intercept HTTPS connections on the device. Safe diagnostics do not require disabling protection or handing the private key to third parties.
16. How to check a certificate after reissuance
A new certificate may be issued successfully, but the browser may still see the old one. Therefore, you need to check the public server response, not just the file on disk or the status in the control panel. After installation, reload the web server configuration, then run the OpenSSL command again to check the validity dates and SAN.
sudo certbot certificates
sudo certbot renew --dry-run
echo | openssl s_client -connect example.ru:443 -servername example.ru 2>/dev/null | openssl x509 -noout -dates -subject -issuer
certbot certificates shows the certificates known to the installed Certbot; it does not prove that a particular web server is using them. renew --dry-run checks whether a renewal can be performed in the future in test mode, while a remote HTTPS check shows the certificate actually presented to visitors.
If the site is hosted by a provider, issuance and renewal are usually managed through the hosting control panel. In that case, running Certbot manually may be unnecessary or unavailable. The exact features offered by Beget, REG.RU, and other platforms depend on the specific service and control panel version.
17. ERR_SSL_PROTOCOL_ERROR: when the issue is not the certificate
Not every HTTPS failure is related to certificate fields. ERR_SSL_PROTOCOL_ERROR may occur because of an incorrect TLS handshake, an HTTPS connection to a port serving plain HTTP, proxy errors, incompatible protocol settings, or an unavailable server. Therefore, installing another certificate may not change anything at all.
Check that port 443 actually serves TLS, which protocol versions and cipher suites are allowed, whether there are errors in the server logs, and whether an intermediate load balancer is altering the connection. Forcing outdated TLS versions to support a single client usually weakens security and should not be the first measure.
It is useful to distinguish errors that occur before the HTTP exchange begins from application errors that occur afterward. If TLS does not complete the handshake, redirects 301 and 308 are not yet involved. First restore the secure channel, then check redirects and site behavior.
18. Beget and REG.RU: fixing the issue through the hosting control panel
On shared hosting, many SSL settings are hidden behind the control panel. If the certificate does not match the name, check which site the domain is linked to, whether the wwwvariant has been added, whether domain ownership has been verified, and which certificate is assigned to the required site instance or virtual host.
For an expired certificate, check the automatic renewal status, DNS configuration, and whether the site has been moved to another server. For an untrusted chain, make sure the hosting provider is using the full certificate bundle. Do not upload fragments of a key or certificate to fields with unclear purposes without checking first.
Beget and REG.RU interfaces may differ depending on the plan and type of service. This article deliberately does not provide a made-up sequence of buttons. For a specific account, use the provider’s current official documentation; after making a change, be sure to check the external HTTPS response rather than relying only on a green status in the control panel.
19. SSL and WordPress: Why the Warning Persists
WordPress does not issue publicly trusted certificates on its own. HTTPS must first be working on the hosting platform or the server handling the site. Only then should you change WordPress URLs, configure redirects, and fix links to resources. If the certificate is invalid, rewriting URLs in the database will not help.
When the TLS certificate is valid but individual page elements still load over HTTP, that is a different problem—Mixed Content. Modern browsers may block scripts and styles, and may try to automatically load some images over HTTPS. Fixing this requires finding the original HTTP URLs in templates, plugins, stylesheets, and the database.
For a detailed explanation, see the separate guide “SSL for WordPress” and the article “Mixed Content Error”. These resources are useful after the certificate has been fixed, but they do not replace the essential checks of the date, issuer, and SAN.
20. A 15-Minute Diagnostic Plan: Steps to Follow
The stated time is a guideline for initial diagnostics, not a guarantee that the issue will be fixed. If the certificate has expired, domain validation is required, or DNS needs to be fixed, recovery may take longer. For a critical service, changes should be made with a backup in place and during an agreed maintenance window.
The most useful discipline is to change one setting at a time and repeat the external test after each fix. Changing DNS, the certificate, redirects, and server blocks all at once makes it harder to find the cause and can create new errors.
21. Preventing SSL Errors and Monitoring
Certificate errors often occur not because cryptography is complicated, but because there is no oversight. A certificate is issued and the site works, but a few months later DNS changes, an automation token loses its permissions, or the renewal task stops running. Without independent monitoring, visitors are the first to discover the problem.
A reliable system regularly checks certificates for all public hostnames: the main domain, the version with www, API, store, account portal, and required subdomains. Alerts should arrive in advance, not after the certificate expires. It is also worth monitoring whether ACME validation succeeds and whether the server configuration is reloaded after issuance.
Document the certificate authority in use, who is responsible for renewal, the DNS validation method, where the certificates are stored, and the consequences of an outage. The site owner should understand that automation requires maintenance and that monitoring notifications need to be checked regularly.
22. Frequently Asked Questions
Can an already expired certificate be renewed?
Yes, in most cases a new certificate can be issued after validating the domain again. This does not make the old certificate valid: the server must start using the new one.
Why does Chrome still show a warning even though the certificate is valid?
In addition to the date, the browser checks the name, trusted chain, and other requirements. Sometimes the server has multiple IP addresses or different certificates for IPv4 and IPv6.
Why does the site work in Firefox but not in another browser?
Possible causes include different trust stores, cached intermediate certificates, browser versions, or local security components.
Is a free Let’s Encrypt certificate sufficient?
For many public websites, a free DV certificate provides a fully protected connection. Correct installation, trust, and automatic renewal are what matter.
Do you need to buy a certificate for a subdomain?
No payment is required. You can issue a free certificate for a specific subdomain or use a suitable Wildcard certificate if supported domain validation is available.
Can a redirect alone fix the error?
No. Certificate validation happens before a regular HTTP response is sent. A redirect does not fix an expired certificate or a name mismatch.
Is it safe to click “Continue” when a warning appears?
For ordinary visits to a public website, it is not recommended. The warning may indicate that the connection is being intercepted; do not enter sensitive information.
23. Conclusion and Official Sources
An SSL certificate error should be diagnosed using its specific code. An expired certificate requires checking the expiry date and the file actually installed; an untrusted certificate requires checking the chain and issuer; a name mismatch requires comparing the SAN, SNI, and domain. After any change, check the site’s actual response, not just the server settings.
Reliable HTTPS depends on the right certificate, correct configuration, automatic renewal, and monitoring. In most cases, following this plan is faster and safer than trying to disable browser checks.
Official sources:
- Google Chrome Help — Connection and certificate errors.
- Mozilla Support — Certificate warnings.
- Mozilla Support — Secure website errors.
- OpenSSL — s_client documentation.
- Certbot — Certificate and renewal guide.
- Let’s Encrypt — Official documentation.
This material was checked against the documentation as of November 5, 2026. Browser menu names, hosting settings, and application behavior may change. Before configuring a production server, make a backup and check the latest instructions.