Skip to content

SSLContext.Load_cert_chain non-existing filename report #144249

Closed

Description

@romuald

Feature or enhancement

Proposal:

Considering the following example

ctx = ssl.create_default_context()
ctx.load_cert_chain(maybe_no_exists, maybe_not_exists_also)

# -> FileNotFoundError: [Errno 2] No such file or directory

The current implementation returns a simple No such file or directory exception without information about the file itself

Since FileNotFoundError have a filename attribute that is correctly reported in its representation, it would be appreciable to have the filename attached to the exception being raised

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

Activity

  1. added a commit that references this issue on Jan 26, 2026
  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    and removed
    stdlibStandard Library Python modules in the Lib/ directory
    on Jan 26, 2026
  3. added a commit that references this issue on Jan 27, 2026
  4. added a commit that references this issue on Jan 28, 2026
  5. added a commit that references this issue on Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions