Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificates ¶
type Certificates struct { // PEM-encoded CA certificate that has been used to sign the server certificate CaCertificate []byte // PEM-encoded server certificate ServerCertificate []byte // PEM-encoded private key that has been used to sign the server certificate ServerCertKey []byte }
func GenerateSelfSignedCertificate ¶
func GenerateSelfSignedCertificate(config cert.Config) (*Certificates, error)
This function generates a self-signed TLS certificate
Click to show internal directories.
Click to hide internal directories.