Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCACertificateAndPrivateKey ¶
CreateCACertificateAndPrivateKey creates a pair of self-signed certificate and private key for certificate authority with the specified common name.
func CreateClientCertificateAndPrivateKey ¶
func CreateClientCertificateAndPrivateKey( name string, caCert *x509.Certificate, caPrivKey *rsa.PrivateKey, ) ([]byte, []byte, error)
CreateClientCertificateAndPrivateKey creates a pair of client certificate and private key signed by the specified CA.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.