mixin

Cert

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 toStr

Get the PEM encoding of the certificate

certType

Get the type of certificate (e.g

subject

Get the subject DN from the certificate

isCA

Return true if certificate is a Certificate Authority

pub

Get the public key from the certificate

issuer

Get the issuer DN from the certificate

encoded

Get the encoded form of the certificate

isSelfSigned

Return true if certificate is self signed

certType abstract Str certType()

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

encoded abstract Buf encoded()

Get the encoded form of the certificate.

isCA abstract Bool isCA()

Return true if certificate is a Certificate Authority

isSelfSigned abstract Bool isSelfSigned()

Return true if certificate is self signed

issuer abstract Str issuer()

Get the issuer DN from the certificate.

pub abstract PubKey pub()

Get the public key from the certificate.

subject abstract Str subject()

Get the subject DN from the certificate.

toStr abstract Str toStr()

Get the PEM encoding of the certificate

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST