- Index
- »
- fan.crypto
- »
- Cert
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.
Get the PEM encoding of the certificate
Get the type of certificate (e.g
Get the subject DN from the certificate
Return true if certificate is a Certificate Authority
Get the public key from the certificate
Get the issuer DN from the certificate
Get the encoded form of the certificate
Return true if certificate is self signed
abstract Str certType()
Get the type of certificate (e.g. X.509)
abstract Buf encoded()
Get the encoded form of the certificate.
abstract Bool isCA()
Return true if certificate is a Certificate Authority
abstract Bool isSelfSigned()
Return true if certificate is self signed
abstract Str issuer()
Get the issuer DN from the certificate.
abstract PubKey pub()
Get the public key from the certificate.
abstract Str subject()
Get the subject DN from the certificate.
abstract Str toStr()
Get the PEM encoding of the certificate