Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accessor ¶
type Accessor interface { InsertCertificate(cr CertificateRecord) error GetCertificate(serial, aki string) ([]CertificateRecord, error) GetUnexpiredCertificates() ([]CertificateRecord, error) RevokeCertificate(serial, aki string, reasonCode int) error InsertOCSP(rr OCSPRecord) error GetOCSP(serial, aki string) ([]OCSPRecord, error) GetUnexpiredOCSPs() ([]OCSPRecord, error) UpdateOCSP(serial, aki, body string, expiry time.Time) error UpsertOCSP(serial, aki, body string, expiry time.Time) error }
Accessor abstracts the CRUD of certdb objects from a DB.
type CertificateRecord ¶
type CertificateRecord struct { Serial string `sql:"serial_number"` AKI string `sql:"authority_key_identifier"` CALabel string `sql:"ca_label"` Status string `sql:"status"` Reason int `sql:"reason"` Expiry time.Time `sql:"expiry"` RevokedAt time.Time `sql:"revoked_at"` PEM string `sql:"pem"` }
CertificateRecord encodes a certificate and its metadata that will be recorded in a database.
Click to show internal directories.
Click to hide internal directories.