Skip to content

fix: load system default certificates into SSL context (closes #480) - #1915

Open
botbikamordehai2-sketch wants to merge 1 commit into
httpie:masterfrom
botbikamordehai2-sketch:fix/issue-480-1785497486
Open

fix: load system default certificates into SSL context (closes #480)#1915
botbikamordehai2-sketch wants to merge 1 commit into
httpie:masterfrom
botbikamordehai2-sketch:fix/issue-480-1785497486

Conversation

@botbikamordehai2-sketch

Copy link
Copy Markdown

What

Fix #480 where HTTPie does not use system-installed CA certificates, causing SSL verification failures for domains using private/corporate CAs.

Fix

When creating the custom SSL context in HTTPieHTTPSAdapter._create_ssl_context, call ssl_context.load_default_certs() (if available) in addition to ensure_default_certs_loaded(). This loads system CA bundle (e.g., from /etc/ssl/certs) which may contain the user's custom CA.

Tests

Manual verification with a server using a system-installed CA.

Closes #480

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.

HTTPie ignores system certificates

1 participant