🛑
Security

Red browser warning screen: the causes and how to tell them apart

04.12.2026
← All articles

When a browser shows a red or dark full-page barrier instead of a site, many people assume a single cause: "the site has a virus". In reality there are several very different causes, each fixed in its own way. Sometimes the SSL certificate has expired, sometimes the domain points to the wrong server, and sometimes the problem is not the site at all but the clock on the visitor's computer.

Read the error code first

Every warning screen contains a small code, and it is half the diagnosis. Chrome shows codes like NET::ERR_CERT_..., Firefox shows SEC_ERROR_... or SSL_ERROR_... under "Advanced". If the screen says "Dangerous site" or "Deceptive site" instead, it is a Google Safe Browsing warning, not a certificate issue.

Code or textLikely cause
ERR_CERT_DATE_INVALIDExpired certificate, or wrong date on the user's device
ERR_CERT_COMMON_NAME_INVALIDCertificate issued for a different name (www or subdomain missing)
ERR_CERT_AUTHORITY_INVALIDSelf-signed certificate or incomplete intermediate chain
"Dangerous site", "Deceptive site"Google Safe Browsing flagged the site
ERR_SSL_PROTOCOL_ERRORThe server is not answering HTTPS correctly on port 443

Expired or mismatched certificates

Let's Encrypt certificates last 90 days and should renew automatically, but renewal can stop when DNS is moved to another server, a rule blocks the validation path, or the site was migrated while renewal continues at the old host. Check the certificate from a terminal:

openssl s_client -connect misol.uz:443 -servername misol.uz < /dev/null 2>/dev/null \
  | openssl x509 -noout -subject -issuer -dates

notAfter shows the expiry date and subject the name it covers. A valid certificate can still fail if it covers misol.uz but the visitor opens www.misol.uz, or if the domain points at a shared IP where no site for it exists, so the server presents another site's certificate. On sayt.uz hosting, Let's Encrypt certificates are free and renew automatically; if one expired anyway, check whether the domain's DNS points elsewhere.

Example: a school site after migration

A private school in Samarkand moved its site to new hosting and switched the A record. Some parents saw the site fine, others got ERR_CERT_COMMON_NAME_INVALID. The new certificate covered only the bare domain, while parents clicked www links from old newsletters. Reissuing the certificate for both names and redirecting www to the main domain fixed it.

When the problem is on the visitor's side

If only one person sees the warning, check their device: a wrong system date makes valid certificates look invalid, some antivirus tools intercept HTTPS with their own certificate, and public Wi-Fi login pages can hijack HTTPS connections. If every site fails on that device, the site is not the issue.

Wrong DNS and HSTS

If the A record points to an old IP, the browser reaches a different server whose certificate does not match:

dig +short misol.uz A
dig +short www.misol.uz A
curl -sSI https://misol.uz | head -n 5

Fix the record and allow time for TTL to expire. Some warning screens have no "Proceed anyway" button: that happens when the site previously sent an HSTS header, so the browser refuses exceptions. The only fix is a valid certificate on the server.

When it is Safe Browsing

If the screen says "Dangerous site" or "Deceptive site", renewing the certificate will not help. The site must be cleaned of malicious code and a review requested in Google Search Console, which involves finding the entry point, changing passwords and updating outdated plugins.

Related articles

🔑 Which Passwords to Change After a Website Hack: Full List and Order 🔓 Open RDP: the most frequently breached service and how to close it 🛡️ Uzbekistan's Personal Data Law: what a website owner must do 📋 Terms of use page: what it should contain
🌐 Language
🇺🇿 O⁠'zbek 🇺🇿 Özbek (yangi) 🇺🇿 Ўзбек 🇷🇺 Русский 🇬🇧 English ✓