nginx: [emerg] SSL_CTX_set_cipher_list("...") failed — invalid ssl_ciphers string
The ssl_ciphers value contains a cipher or syntax OpenSSL doesn't accept, so nginx won't load the config.
nginx: [emerg] SSL_CTX_set_cipher_list failedSSL_CTX_set_cipher_list("...") failed (SSL: error:1410D0B9:SSL routines:SSL_CTX_set_cipher_list:no cipher match)no cipher match nginx ssl_cipherserror:0A0000B9 no cipher matchnginx ssl_ciphers invalid Meaning
Use a valid OpenSSL cipher string (check with openssl ciphers -v 'STRING'), avoid copy-pasting TLS 1.3 suite names into ssl_ciphers (TLS 1.3 suites are configured separately), and remove ciphers removed in OpenSSL 3. Use Mozilla's SSL Configuration Generator as a baseline.
Common causes
- Typos or unknown cipher names
- TLS 1.3 suite names in ssl_ciphers
- Cipher removed in the OpenSSL build
- Stray whitespace/newlines in the value
- Config copied from an old guide
⚡ Quick fix
- Validate:
openssl ciphers -v "ECDHE+AESGCM" - Use a Mozilla-recommended list
- Run
nginx -tafter each change
Detailed fix by platform
Nginx
- nginx
ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384; ssl_prefer_server_ciphers off;
How to diagnose
- Cipher string — Valid?
- TLS 1.3 — Separate?
- Syntax — Clean?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in SSL / TLS
- HTTPSConnectionPool: Max retries exceeded (SSLError) Python requests: HTTPSConnectionPool(host='api.example.com', port=443): Max retries exceeded with url: /v1 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] ...')))
- DST Root CA X3 expired (old clients fail) Old clients: certificate has expired — Let's Encrypt chain uses expired DST Root CA X3 (OpenSSL 1.0.x, Android < 7.1.1)
- Keystore was tampered with, or password was incorrect Java keytool: java.io.IOException: Keystore was tampered with, or password was incorrect
Other ways to find it
Where this error sits
Origin: Network. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 18 Nov 2026