Documentation ¶
Index ¶
- func CreateTestCACertificates(t *testing.T, clk clock.Clock) string
- func CreateTestIntermediateCACertificate(t *testing.T, clk clock.Clock, parent *x509.Certificate, ...) (*x509.Certificate, crypto.PrivateKey)
- func CreateTestSelfSignedCACertificate(t *testing.T, clk clock.Clock) (*x509.Certificate, crypto.PrivateKey)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTestCACertificates ¶
CreateTestCACertificates creates a self-signed CA and an intermediate CA for testing purposes. It returns the path to the temporary directory where the certificates are stored.
func CreateTestIntermediateCACertificate ¶
func CreateTestIntermediateCACertificate(t *testing.T, clk clock.Clock, parent *x509.Certificate, parentKey crypto.PrivateKey, cn string) (*x509.Certificate, crypto.PrivateKey)
CreateTestIntermediateCACertificate creates an intermediate CA certificate for testing purposes.
func CreateTestSelfSignedCACertificate ¶
func CreateTestSelfSignedCACertificate(t *testing.T, clk clock.Clock) (*x509.Certificate, crypto.PrivateKey)
CreateTestSelfSignedCACertificate creates a self-signed CA certificate for testing purposes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.