Documentation ¶
Overview ¶
Package tlstest provides utilities for testing with TLS certificates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCert ¶
func GenerateCert(options *CertOptions) (cert *tls.Certificate, certPEMBlock, keyPEMBlock []byte, err error)
GenerateCert generates a certificate with the given options.
Types ¶
type CertOptions ¶
type CertOptions struct { Parent *tls.Certificate Template *x509.Certificate PrivateKey crypto.Signer }
CertOptions are certificate options.
Click to show internal directories.
Click to hide internal directories.