Documentation ¶
Overview ¶
Package mtls provides both a library and an application for creating TLS mutual authentication certificate and private key pairs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBlocks ¶
func CreateBlocks(organizationNames []string, optionalIps []net.IP, optionalDomainNames []string, expiration time.Time) (certificate *pem.Block, privateKey *pem.Block, err error)
CreateBlocks creates a certificate and private key pair for TLS mutual authentication in the block format. Domain names and IP addresses are optional. If you do not wish to specify one or the other, simply set the value to nil or to an empty list.
func CreateFiles ¶
func CreateFiles(organizationNames []string, optionalIps []net.IP, optionalDomainNames []string, expiration time.Time, privateKeyOutPath string, certOutPath string) error
CreateFiles creates a certificate and private key pair for TLS mutual authentication at the specified locations. If the specified files already exist, then they will be overwritten. Domain names and IP addresses are optional. If you do not wish to specify one or the other, simply set the value to nil or to an empty list.
Types ¶
This section is empty.