Closed
Description
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.
- modify
add_certificate_chain_file
to accept the path to the private key. Also, it is needed to rename too. - provide
Certificate.load_file
and deprecateadd_certificate_chain_file
.
Metadata
Metadata
Assignees
Labels
No labels