type

Cert

src const mixin Cert

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.

methods

certType

Get the type of certificate (e.g.

encoded

Get the encoded form of the certificate.

isCA

Return true if certificate is a Certificate Authority

isSelfSigned

Return true if certificate is self signed

issuer

Get the issuer DN from the certificate.

pub

Get the public key from the certificate.

subject

Get the subject DN from the certificate.

toStr

Get the PEM encoding of the certificate

Slot Details

certType

src abstract Str certType()

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

encoded

src abstract Buf encoded()

Get the encoded form of the certificate.

isCA

src abstract Bool isCA()

Return true if certificate is a Certificate Authority

isSelfSigned

src abstract Bool isSelfSigned()

Return true if certificate is self signed

issuer

src abstract Str issuer()

Get the issuer DN from the certificate.

pub

src abstract PubKey pub()

Get the public key from the certificate.

subject

src abstract Str subject()

Get the subject DN from the certificate.

toStr

src abstract override Str toStr()

Get the PEM encoding of the certificate