pub trait SecCertificateExt {
    fn common_name(&self) -> Result<String, Error>;
fn public_key(&self) -> Result<SecKey, Error>;
fn properties(
        &self,
        keys: Option<&[CertificateOid]>
    ) -> Result<CertificateProperties, CFError>; fn fingerprint(&self) -> Result<[u8; 32], CFError> { ... } }
Expand description

An extension trait adding OSX specific functionality to SecCertificate.

Required methods

Returns the common name associated with the certificate.

👎 Deprecated:

Uses deprecated SecCertificateCopyPublicKey. Enable OSX_10_14 feature to avoid it

Returns the public key associated with the certificate.

Returns the set of properties associated with the certificate.

The keys argument can optionally be used to filter the properties loaded to an explicit subset.

Provided methods

Returns the SHA-256 fingerprint of the certificate.

Implementors