Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertBundle ¶
type CertBundle struct { Cert *x509.Certificate PEM []byte PK crypto.PrivateKey }
CertBundle contains a signed certificate and corresponding private key, to be used for testing.
func MustCreateBundle ¶
func MustCreateBundle(t *testing.T, issuer *CertBundle, name string) *CertBundle
MustCreateBundle creating a CertBundle for testing. If issuer bundle is empty, certificate will be self signed.
Click to show internal directories.
Click to hide internal directories.