Documentation ¶ Overview ¶ Package tlstest generates throwaway self-signed certificates for tests exercising TLS-enabled transport and cluster code. Not for production use. Index ¶ func NewPair(t testing.TB) (caPEM, certPEM, keyPEM []byte) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewPair ¶ func NewPair(t testing.TB) (caPEM, certPEM, keyPEM []byte) NewPair generates a throwaway self-signed CA and one leaf certificate signed by it, valid for both server and client auth. Returns all three as PEM: the CA certificate, the leaf certificate, and the leaf's private key. Types ¶ This section is empty. Source Files ¶ View all Source files tlstest.go Click to show internal directories. Click to hide internal directories.