# What does 'ERR_SSL_PROTOCOL_ERROR: This site can't provide a secure connection' mean?

**Short answer:** Chrome couldn't complete a TLS handshake with the server. For a newly connected custom domain, the host usually hasn't issued the certificate yet or DNS points somewhere else. Locally, it usually means you opened `https://localhost` on a server that only speaks HTTP. Fix the DNS records your host asks for, wait for the certificate, or use `http://` locally.

*Last updated 2026-11-25 · Reviewed by ProofForge*

## The exact error

```text
This site can't provide a secure connection
example.com sent an invalid response.
ERR_SSL_PROTOCOL_ERROR
```

## Why it happens

- Custom domain added but the certificate isn't provisioned yet (DNS not verified).
- DNS A/CNAME records point to an old host or a parking page.
- Opening `https://` on a port that serves plain HTTP (common on localhost).
- A proxy or CDN in front with incompatible SSL mode settings.

## How to fix it

1. Check DNS records match exactly what your host (Replit, Vercel, Netlify) shows for the domain.
2. Wait for the host to issue the certificate, then retry. Remove conflicting old A/AAAA records.
3. Locally, use `http://localhost:PORT`, or set up a trusted local cert.
4. If a CDN proxies the domain, use its full/strict TLS mode to the origin.

```bash
# what does DNS really point to?
dig +short example.com
dig +short www.example.com
# does the server complete TLS?
openssl s_client -connect example.com:443 -servername example.com </dev/null | head
```

## Check it's fixed

`curl -sI https://example.com` returns a normal status, and the browser shows a valid certificate for the exact host.

> **Scan box (use the site's ScanBox component):** Check whether your live app has this problem. Paste your URL for a free outside-in scan covering exposed keys, open database rules, CORS and security headers. [Scan my app free →](https://proofforge.live/#scan)

## FAQ

### How long does certificate issuance take?
Usually minutes after DNS is correct, sometimes longer while DNS propagates.

### Is it a problem on my visitor's side?
Rarely. If it fails for everyone, it's DNS, the certificate or the server.

### Does www need its own record?
Yes. Add DNS for `www` too and redirect it, or www visitors get errors.

## Sources

- [Replit: Custom domains](https://docs.replit.com/cloud-services/deployments/custom-domains)
- [Vercel: Troubleshooting domains](https://vercel.com/docs/domains/troubleshooting)
- [Let's Encrypt: Certificates for localhost](https://letsencrypt.org/docs/certificates-for-localhost/)

## Related

- [Fix: missing HTTPS redirect](/fix/missing-https-redirect)
- [Fix NET::ERR_CERT_COMMON_NAME_INVALID](/errors/net-err-cert-common-name-invalid)
- [Security headers checker](/tools/security-headers-checker)
- [Security check for Replit apps](/check/replit)
- [All errors](/errors)
