Documentation ¶ Overview ¶ Package tlstest creates temporary certificate revisions for transport tests. Index ¶ func Publish(tb testing.TB, link string, leaf Identity, ca, previous []byte, ...) type Authority func NewAuthority(tb testing.TB, name string) Authority type Identity func NewIdentity(tb testing.TB, ca Authority, name string, usage x509.ExtKeyUsage) Identity Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Publish ¶ func Publish(tb testing.TB, link string, leaf Identity, ca, previous []byte, until time.Time) Types ¶ type Authority ¶ type Authority struct { Certificate *x509.Certificate Key *ecdsa.PrivateKey PEM []byte } func NewAuthority ¶ func NewAuthority(tb testing.TB, name string) Authority type Identity ¶ type Identity struct { Certificate []byte Key []byte } func NewIdentity ¶ func NewIdentity(tb testing.TB, ca Authority, name string, usage x509.ExtKeyUsage) Identity Source Files ¶ View all Source files fixtures.go Click to show internal directories. Click to hide internal directories.