cert

package
v0.0.0-...-a0d7459 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2017 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewCA = newCA

NewCA generates a CA certificate/key pair suitable for signing server keys for an environment with the given name. wrapper arount utils/cert#NewCA

View Source
var NewLeafKeyBits = 2048

NewLeafKeyBits is the number of bits used for the cert.NewLeaf call.

Functions

func NewDefaultServer

func NewDefaultServer(caCertPEM, caKeyPEM string, hostnames []string) (certPEM, keyPEM string, err error)

NewDefaultServer generates a certificate/key pair suitable for use by a server, with an expiry time of 10 years.

func NewServer

func NewServer(caCertPEM, caKeyPEM string, expiry time.Time, hostnames []string) (certPEM, keyPEM string, err error)

NewServer generates a certificate/key pair suitable for use by a server.

func Verify

func Verify(srvCertPEM, caCertPEM string, when time.Time) error

Verify verifies that the given server certificate is valid with respect to the given CA certificate at the given time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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