const mixin crypto::Cert

crypto::Cert

Source

Cert defines the api for an identity certificate. An identity certificate binds a subject to a public key. The certificate is signed by an issuer.

certType

abstract Str certType()

Source

Get the type of certificate (e.g. X.509)

encoded

abstract Buf encoded()

Source

Get the encoded form of the certificate.

isCA

abstract Bool isCA()

Source

Return true if certificate is a Certificate Authority

isSelfSigned

abstract Bool isSelfSigned()

Source

Return true if certificate is self signed

issuer

abstract Str issuer()

Source

Get the issuer DN from the certificate.

pub

abstract PubKey pub()

Source

Get the public key from the certificate.

subject

abstract Str subject()

Source

Get the subject DN from the certificate.

toStr

abstract override Str toStr()

Source

Get the PEM encoding of the certificate