Skip to content

fix: improve SSL certificate error messages with human-readable outpu…#1

Open
jtvhd6 wants to merge 1 commit into
masterfrom
fix/ssl-error-messages
Open

fix: improve SSL certificate error messages with human-readable outpu…#1
jtvhd6 wants to merge 1 commit into
masterfrom
fix/ssl-error-messages

Conversation

@jtvhd6

@jtvhd6 jtvhd6 commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Problem

When an SSL certificate error occurs, HTTPie shows a raw Python traceback
that is difficult for users to understand and provides no remediation steps.

Closes httpie#1549

Solution

Added httpie/ssl_errors.py — a classifier that maps SSL error patterns
to concise, human-readable messages covering:

  • Untrusted CA / missing local issuer
  • Expired certificate
  • Self-signed certificate
  • Hostname mismatch

Changes

  • httpie/ssl_errors.py — new error classifier module
  • tests/test_ssl_errors.py — 5 new unit tests (all passing)

Testing

All 5 new tests pass. Verified manually against badssl.com test endpoints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cryptographic API Misuse Vulnerability : Missing SSL Certificate Validation

1 participant