# tlsv1 alert internal error — the TLS peer hit an internal problem during the handshake

**Code:** `internal error` · **Category:** SSL / TLS · **Seen on:** SSL, OpenSSL, Nginx

The server sent alert 80, usually because its TLS configuration is broken or it can't pick a certificate.

## Meaning

Typical causes are a missing/unreadable certificate for the requested SNI name, a certificate/key mismatch, an ACME/cert reload in progress, an unsupported curve, or an exhausted resource. Check the server error log at the time of the handshake.

## Common causes

- No certificate for the requested hostname (SNI)
- Certificate or key unreadable/mismatched
- Broken reload or ACME renewal
- Unsupported curve/cipher configuration
- Server out of memory/file descriptors

## Quick fix

1. Read the server's TLS error log
2. Verify the certificate for that SNI name
3. Run `nginx -t` / reload cleanly

## Detailed fix by platform

### Shell

1. 

```bash
sudo tail -n 50 /var/log/nginx/error.log
openssl s_client -connect host:443 -servername host
```


## How to diagnose

1. **Server log** — Error?
2. **Cert for SNI** — Present?
3. **Reload** — Clean?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/ssl/tls-alert-internal-error-80)
