tls

package
v0.0.0-...-53eff13 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCACert

func NewCACert() (*x509.Certificate, *rsa.PrivateKey, error)

NewCACert generates a new CA certificate and private key.

func NewSignedCert

func NewSignedCert(caCert *x509.Certificate, caKey *rsa.PrivateKey, altNames tlsutil.AltNames, commonName string) (*x509.Certificate, *rsa.PrivateKey, error)

NewSignedCert generates a new signed certificate for a given CA.

Types

This section is empty.

Jump to

Keyboard shortcuts

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