Documentation
¶
Index ¶
- func CreateCertificateAndKey() (testCertContents []byte, testKeyContents []byte, err error)
- func CreateTestCertificate() (certPath string, keyPath string, caPath string, err error)
- func CreateTestCertificates() (certPath string, keyPath string, err error)
- func CreateTestCrt() (certPath string, keyPath string, certContents []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCertificateAndKey ¶
CreateCertificateAndKey generates a self-signed test certificate and private key, and returns them in PEM format.
func CreateTestCertificate ¶
CreateTestCertificate generates a test certificate, key, and CA certificate, writes them to temporary files, and returns their paths.
func CreateTestCertificates ¶
CreateTestCertificates generates a test certificate and key, writes them to temporary files, and returns their paths.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.