Skip to content

FileNotFoundError while using TLS Interception #1096

Open
@guiqiqi

Description

@guiqiqi

Describe the bug
Got this error when using TLS interception:

handler.handle_readables:234 - Exception when receiving from client connection#24 with reason FileNotFoundError(2, 'No such file or directory')

To Reproduce
With ca files generated by make ca-certificates and signed by make sign-https-certificates, I got three files:

  • https-cert.pem
  • https-key.pem
  • https-csr.pem

then using nested python code to start proxy.py:

main(
    hostname=hostname, 
    ca_cert_file="/Users/doge/desktop/https-cert.pem", 
    ca_key_file="/Users/doge/desktop/https-key.pem", 
    ca_signing_key_file="/Users/doge/desktop/https-csr.pem",
    plugins=[ModifyLBXLocationPlugin], 
    local_executor=False,
)

I'm pretty sure these CA files are exists, but got the exception above and no connection could pass proxy. Using relative path not helps.

Version information

  • OS: macOS 12.2.1
  • proxy.py Version: 2.4.0

Additional context
Thanks for your working :)!

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugBug report in proxy server

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions