Fastly Origin TLS Errors: Hostname Mismatch, Unable to Verify Certificate
Quick answer
Fastly origin TLS errors come from a certificate that does not match the origin hostname or whose CA Fastly cannot verify. Set the certificate hostname or supply the CA certificate.
Most likely fix: Set the certificate hostname
How to fix it
Try these in order — the most common fix is first.
1. Set the certificate hostname
- Clone the service to edit and open Origins
- Edit the affected host
- Enter the CN or SAN from your certificate in Certificate Hostname
- Save and activate on production (custom VCL: .ssl_cert_hostname)
Did this fix it?2. Provide the CA certificate
- Paste the PEM-formatted CA certificate into the TLS CA certificate field (custom VCL: .ssl_ca_cert)
- Or use a certificate from a CA in Fastly's bundle
Did this fix it?3. Renew an expired certificate
- Submit a new CSR to your CA and install the signed certificate on the origin
Did this fix it?4. Fix protocol errors
- Test the origin with openssl s_client using the matching -tls1_x flag, or sslscan
- Update server software and TLS libraries; block RC4
- If the origin has no TLS, disable Enable TLS? and use port 80
Did this fix it?
Symptoms
503 errors with messages such as Hostname mismatch, unable to verify the first certificate, self signed certificate, Certificate has expired or SSL handshake failure.
Why it happens
- Certificate CN/SAN does not match the origin host or certificate hostname setting
- Self-signed or private CA certificate with no CA provided
- Origin certificate expired
- Origin does not use TLS, or supports only outdated protocols (Fastly supports TLS 1.0 to 1.3, not SSLv2/3)
- Origin offers only the RC4 cipher
This guide also covers
- fastly hostname mismatch
- fastly unable to verify the first certificate
- fastly ssl handshake failure origin
- fastly certificate has expired
Still not working?
If Fastly keeps failing, you're not alone. See every Fastly problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usThe same problem in other apps
All not loading, error messages & connection guides →
Cloudflare Error 521: Web Server Is Down (Cloudflare)
Other Fastly errors
- Fastly Error: Unknown Domain
- Fastly 503 Backend Read Error / Connection Timeout
- Fastly Purge Not Working (Old Content Still Served)
- Fastly TLS Certificate Stuck Pending or Not Provisioning
- Fastly Not Caching: Always X-Cache MISS
- Fastly Serves Wrong Content or Denies Requests From Origin (Override Host)
- How to Cancel Fastly Account