Documentation
¶
Overview ¶
Package certificate provides facilities for working with certificates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFailedToDecodeKey = errors.New("unable to decode private key")
ErrFailedToDecodeKey indicates that the private key could not be decoded.
Functions ¶
func GenerateCRL ¶ added in v0.5.0
GenerateCRL will generate a blank Certificate revocation List from the provided issuer certificate.
Types ¶
type HostNames ¶
type HostNames []string
HostNames contains the list of hosts the cert will be generated for.
type KeyPair ¶
KeyPair stores a PEM encoded certificate and a PEM encoded RSA private key.
func GenerateCA ¶
GenerateCA will generate a new CA key/cert pair.
func GenerateSignedCert ¶
GenerateSignedCert will generate a new signed certificate signed by the input CA key/cert pair with one of multiple hostnames and with the given CN.
Click to show internal directories.
Click to hide internal directories.