cert

package
v2.1.5+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2017 License: BSD-3-Clause Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL