Versions in this module Expand all Collapse all v1 v1.15.1 Sep 9, 2024 v1.15.0 Sep 3, 2024 Changes in this version + type CaStorage interface + WriteCa func(certData []byte) error + type CrlStorage interface + WriteCrl func(crlData []byte) error + type CsrStorage interface + ReadCsr func() ([]byte, error) + WriteSignature func(cert *pkg.Signature) error + type IssueStorage interface + ReadCert func() (*x509.Certificate, error) + WriteCert func(cert *pkg.CertData) error + type PkiClient interface + FetchCa func(binary bool) ([]byte, error) + FetchCaChain func() ([]byte, error) + FetchCrl func(binary bool) ([]byte, error) + Issue func(ctx context.Context, args pkg.IssueArgs) (*pkg.CertData, error) + ReadAcme func(ctx context.Context, commonName string) (*pkg.CertData, error) + Revoke func(ctx context.Context, serial string) error + Sign func(ctx context.Context, csr string, args pkg.SignatureArgs) (*pkg.Signature, error) + Tidy func(ctx context.Context) error + type PkiService struct + func NewPkiService(pki PkiClient, strategy RenewStrategy) (*PkiService, error) + func (p *PkiService) Issue(ctx context.Context, format IssueStorage, args pkg.IssueArgs) (pkg.IssueResult, error) + func (p *PkiService) ReadAcme(ctx context.Context, format IssueStorage, commonName string) (pkg.IssueResult, error) + func (p *PkiService) Revoke(ctx context.Context, serial string) error + func (p *PkiService) Sign(ctx context.Context, sink CsrStorage, args pkg.SignatureArgs) error + func (p *PkiService) Tidy(ctx context.Context) error + func (p *PkiService) Verify(cert *x509.Certificate) error + type RenewStrategy interface + Renew func(cert *x509.Certificate) (bool, error) + type StorageImplementation interface + CanRead func() error + CanWrite func() error + Read func() ([]byte, error) + Write func([]byte) error