Skip to content

[TlsInterception] [False Alarm] Unreliable for Python < 3.10 with untrusted self-signed CA certificates #985

@abhinavsingh

Description

@abhinavsingh

Python < 3.10 runs into following exception for certificates generated with make ca-certificates

2022-01-14 12:17:45,676 - pid:13726 [E] server.wrap_client:848 - OSError when wrapping client for upstream: httpbin.org
Traceback (most recent call last):
  File "/Users/abhinavsingh/Dev/proxy.py/proxy/http/proxy/server.py", line 815, in wrap_client
    self.client.wrap(self.flags.ca_signing_key_file, generated_cert)
  File "/Users/abhinavsingh/Dev/proxy.py/proxy/core/connection/client.py", line 46, in wrap
    self._conn = ssl.wrap_socket(
  File "/Users/abhinavsingh/.pyenv/versions/3.10.0/lib/python3.10/ssl.py", line 1438, in wrap_socket
    context.load_cert_chain(certfile, keyfile)
ssl.SSLError: [X509: KEY_VALUES_MISMATCH] key values mismatch (_ssl.c:3883)

Metadata

Metadata

Assignees

Labels

QuestionQuestions related to proxy server

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions