Versions in this module Expand all Collapse all v2 v2.48.0 Sep 15, 2026 Changes in this version type CA + func (c *CA) Issuing(notBefore, notAfter time.Time) *CA + func (c *CA) X509() *x509.Certificate + type ClientOption func(*clientOptions) + func WithClientCertificate(leaf *Leaf) ClientOption v2.47.0 Sep 14, 2026 Changes in this version + type CA struct + func New(tb testing.TB, opts ...Option) *CA + func (c *CA) CertPEM() []byte + func (c *CA) Certificate() *x509.Certificate + func (c *CA) HTTPClient(tb testing.TB, clientCert *Leaf) *http.Client + func (c *CA) Intermediate(tb testing.TB, cn string) *CA + func (c *CA) IssueClient(tb testing.TB, cn string) *Leaf + func (c *CA) IssueServer(tb testing.TB, sans ...string) *Leaf + func (c *CA) Pool() *x509.CertPool + func (c *CA) WriteCAFile(tb testing.TB, dir string) string + type Leaf struct + func (l *Leaf) CertPEM() []byte + func (l *Leaf) Certificate() *stdtls.Certificate + func (l *Leaf) KeyPEM() []byte + func (l *Leaf) WriteFiles(tb testing.TB, dir string) (certPath, keyPath string) + func (l *Leaf) X509() *x509.Certificate + type Option func(*options) + func WithValidity(notBefore, notAfter time.Time) Option