Documentation ¶
Index ¶
- Variables
- func FormatSerial(i *big.Int) string
- func GetFormattedSerial(content []byte) (string, error)
- func IsCertExpired(cert x509.Certificate) bool
- func ParseCertPem(data []byte) (*x509.Certificate, error)
- type CertData
- type IssueArgs
- type IssueResult
- type IssueStatus
- type Signature
- type SignatureArgs
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoCertFound = errors.New("no existing cert found") ErrRunHook = errors.New("error running hook") ErrCertInvalidData = errors.New("could not parse cert data") ErrWriteCert = errors.New("could not write certificate data") ErrIssueCert = errors.New("error while issuing cert") ErrRevokeCert = errors.New("error while revoking cert") ErrSignCert = errors.New("error while signing cert") ErrTidyCert = errors.New("error while tidying up cert storage") )
Functions ¶
func FormatSerial ¶
func GetFormattedSerial ¶
func IsCertExpired ¶ added in v1.14.0
func IsCertExpired(cert x509.Certificate) bool
func ParseCertPem ¶
func ParseCertPem(data []byte) (*x509.Certificate, error)
Types ¶
type CertData ¶ added in v1.15.0
func (*CertData) AsContainer ¶ added in v1.15.0
func (*CertData) HasCertificate ¶ added in v1.15.0
func (*CertData) HasPrivateKey ¶ added in v1.15.0
type IssueResult ¶ added in v1.15.0
type IssueResult struct { ExistingCert *x509.Certificate IssuedCert *x509.Certificate Status IssueStatus }
type IssueStatus ¶ added in v1.15.0
type IssueStatus int
const ( Issued IssueStatus = iota Noop IssueStatus = iota Unknown IssueStatus = iota )
Click to show internal directories.
Click to hide internal directories.