Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Template ¶
func Template(appName, commonName string) (*x509.Certificate, error)
Template is a helper function to create a cert template with a serial number and other required fields
func WriteCertFile ¶
func WriteCertFile(outFile afero.File, template *x509.Certificate, pub interface{}, priv interface{}) error
WriteCertFile writes the cert.pem certificate file
func WritePrivateKey ¶
func WritePrivateKey(outFile afero.File, key *rsa.PrivateKey) error
WritePrivateKey writes the private.key private key file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.