Versions in this module Expand all Collapse all v1 v1.1.0 Aug 6, 2026 Changes in this version type Bundle + func GenerateSelfSigned(opts GenOpts) (Bundle, error) + func Rotate(current Bundle, opts GenOpts) (Bundle, error) + type GenOpts struct + CommonName string + DNSNames []string + KeyBits int + TTL time.Duration v1.0.0 Aug 4, 2026 Changes in this version + var ErrNoPrivateKey = errors.New("certkit: no private key") + var ErrUnrecognizedFormat = errors.New("certkit: unrecognized format") + var ErrWrongPassphrase = errors.New("certkit: wrong passphrase") + func Export(b Bundle, f Format, newPassphrase string) ([]byte, error) + func ExportContext(ctx context.Context, b Bundle, f Format, newPassphrase string, opts ...Option) ([]byte, error) + type Bundle struct + ChainPEM [][]byte + KeyPEM []byte + LeafPEM []byte + Meta Meta + func Parse(data []byte, passphrase string) (Bundle, error) + func ParseContext(ctx context.Context, data []byte, passphrase string, opts ...Option) (Bundle, error) + func ParseEntry(data []byte, passphrase, alias string) (Bundle, error) + func ParseEntryContext(ctx context.Context, data []byte, passphrase, alias string, opts ...Option) (Bundle, error) + type ErrMultipleEntries struct + Aliases []string + func (e *ErrMultipleEntries) Error() string + type Format int + const DER + const JKS + const PEMBundle + const PEMCertOnly + const PEMFullchain + const PEMKeyOnly + const PKCS12 + const PKCS7 + const Unknown + func DetectFormat(data []byte) Format + func (f Format) String() string + type Meta struct + FingerprintSHA256 string + IsCA bool + Issuer string + KeyAlgorithm string + KeyBits int + NotAfter time.Time + NotBefore time.Time + SANs []string + SerialNumber string + Subject string + type Option func(*obsConfig) + func WithLogger(l golog.Logger) Option + func WithTracing() Option