chipx86 got a fish trophy!
Add Certificate.create_from_server().
Review Request #14941 — Created March 18, 2026 and submitted
This method constructs a
Certificateinstance from a server,
containing the hostname, port, and certificate data. This can be used
to retrieve state from a certificate when encountering an SSL error,
which does not itself represent certificate information.No validation on the certificate itself will be performed (aside from
attempting to load the content). It's the caller's responsibility to
process the certificate in whichever way it needs.
Unit tests pass.
Used this in the upcoming SSL error class work.
| Summary | ID |
|---|---|
| 8b7b085dcb5af3192b59d0fd6cb5bf715186a513 |
Review request changed
- Change Summary:
-
- Switched to a
ValueError. - Switched a unit test to test for the beginning of a string instead of the macOS-specific error.
- Switched to a
- Commits:
-
Summary ID 9dff5bd2d750d2a88e4c99f16933cd74caa2e1c3 dfacdd559e3930914c1f28dfdc3f701a1533b3ec
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.