Add a utility for creating CertificateFingerprints from a string.
Review Request #14888 — Created March 8, 2026 and updated
This introduces
CertificateFingerprints.from_string(), which takes in
a string value, normalizes it, and attempts to determine if it
represents a SHA-1 or SHA-256 value. If it's either of these, an
instance ofCertificateFingerprintswill be created and returned with
the appropriate field filled out. Otherwise,Nonewill be returned.This is useful for cases where we're working with SCMs that provide a
single fingerprint that may be in either of these formats.
Unit tests pass.
| Summary | ID |
|---|---|
| 98717d5a0fcf861bceddf9a37142c7335e3a23f7 |
| Description | From | Last Updated |
|---|---|---|
|
Do we want to validate that the string itself is in the correct format as well as the length? These … |
|