Skip to main content

spki_pin

Function spki_pin 

Source
pub fn spki_pin(der: &[u8]) -> Result<TlsPin, String>
Expand description

The pin of the certificate der: the SHA-256 of its SubjectPublicKeyInfo, the seventh element of tbsCertificate when the optional version comes first.

ยงErrors

A description when der is not a DER certificate.