security

package
v0.0.0-...-f3e8d88 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertTemplate

func CertTemplate() (*x509.Certificate, error)

CertTemplate create x509 certificate template

func GenerateKeyPair

func GenerateKeyPair(bits int) (*rsa.PrivateKey, error)

GenerateKeyPair create a public/private keypair

func GenerateRootCert

func GenerateRootCert(hosts []string, bits int) (
	cert *x509.Certificate, certPEM []byte, rootKey *rsa.PrivateKey, err error)

GenerateRootCert generates a root certificate

Types

This section is empty.

Jump to

Keyboard shortcuts

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