Versions in this module Expand all Collapse all v1 v1.0.2 May 18, 2023 Changes in this version + func CertificateMatchesPrivateKey(certificate *x509.Certificate, privateKey crypto.PrivateKey) (bool, error) + func CertificateMatchesPublicKey(certificate *x509.Certificate, publicKey crypto.PublicKey) (bool, error) + func DERFromCertificates(certs []*x509.Certificate) (derBytes []byte) + func DedupeCertificates(bundles ...[]*x509.Certificate) []*x509.Certificate + func GetSubjectKeyID(pubKey interface{}) ([]byte, error) + func NewSerialNumber() (*big.Int, error) + func RawCertsFromCertificates(certs []*x509.Certificate) [][]byte + func RawCertsToCertificates(rawCerts [][]byte) ([]*x509.Certificate, error) + func ValidateDNS(dns string) error + type Keypair interface + CreateCertificate func(ctx context.Context, template *x509.Certificate, publicKey interface{}) (certDER []byte, err error) + GetCertificate func(ctx context.Context) (*x509.Certificate, error) + type MemoryKeypair struct + func NewMemoryKeypair(cert *x509.Certificate, key crypto.PrivateKey) *MemoryKeypair + func (m *MemoryKeypair) CreateCertificate(ctx context.Context, template *x509.Certificate, publicKey interface{}) ([]byte, error) + func (m *MemoryKeypair) GetCertificate(ctx context.Context) (*x509.Certificate, error)