Skip to content

re-examination about SSLContext#add_certificate_chain_file #305

Closed
@thekuwayama

Description

@thekuwayama

SSLContext#add_certificate_chain_file() is able to load a chain certificates file. I want to re-examine this API.

As commented, the old setters(SSLContext#cert=, key=, extra_chain_cert=) are deprecated.
If add_certificate_chain_file is used, it is needed to call key= to load the private key associated with certificates.
That is, as provided add_certificate_chain_file and then it would be required key=.

The API that parses a chain certificates file is so nice and I think that is needed. So, I suggest 2 plans.

  1. modify add_certificate_chain_file to accept the path to the private key. Also, it is needed to rename too.
  2. provide Certificate.load_file and deprecate add_certificate_chain_file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions