Documentation
¶
Index ¶
- func CAPEM(t testing.TB, commonName string) []byte
- func EncodeCertPEM(cert *x509.Certificate) []byte
- func GenCA(t testing.TB, commonName string) (caPEM []byte, key *ecdsa.PrivateKey, cert *x509.Certificate)
- func GenLeaf(t testing.TB, ca *x509.Certificate, caKey *ecdsa.PrivateKey, commonName string, ...) (certPEM, keyPEM []byte)
- func GenSubCA(t testing.TB, commonName string, parent *x509.Certificate, ...) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeCertPEM ¶
func EncodeCertPEM(cert *x509.Certificate) []byte
func GenCA ¶
func GenCA(t testing.TB, commonName string) (caPEM []byte, key *ecdsa.PrivateKey, cert *x509.Certificate)
func GenLeaf ¶
func GenLeaf(t testing.TB, ca *x509.Certificate, caKey *ecdsa.PrivateKey, commonName string, server bool) (certPEM, keyPEM []byte)
func GenSubCA ¶
func GenSubCA(t testing.TB, commonName string, parent *x509.Certificate, parentKey *ecdsa.PrivateKey) []byte
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.