OpenSSL Error: wrong version number (HTTP on HTTPS port)
TLS client connected to a plaintext HTTP listener or mismatched proxy port.
Runs locally in browser
Free · No login
Independently Verified 2026-11-25
v4.0.0
Identifier: OpenSSL Error
Platform: Security
Common Root Causes:
- TLS client connected to a plaintext HTTP listener or mismatched proxy port.
Interactive Diagnostic Checklist
Verified Solutions:
- Verify `listen 443 ssl;` is configured on the server block and upstream protocol matches.
Safe Diagnostic Command:
curl -v http://<host>:<port>
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.
Technical Explanation
TLS client connected to a plaintext HTTP listener or mismatched proxy port. Recommended diagnostic: `curl -v http://<host>:<port>`. Remediation: Verify `listen 443 ssl;` is configured on the server block and upstream protocol matches.
Worked Examples
- Run `curl -v http://<host>:<port>` to confirm root cause before applying the fix.
Limitations & Assumptions
- Always test configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.
Source References & Verification
Resource ID: err-openssl-wrong-version-number · Independently verified: 2026-11-25