certutils

package
v4.15.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIConfig

func GetAPIConfig(ec *etcd.Client) (*tls.Config, error)

func MRPlottersAutocertTLSConfig

func MRPlottersAutocertTLSConfig(c *etcd.Client) (*tls.Config, error)

func SelfSignedCertificate

func SelfSignedCertificate(dnsNames []string) (*pem.Block, *pem.Block, error)

SelfSignedCertificate generates a self-signed certificate. Much of this is from https://golang.org/src/crypto/tls/generate_cert.go. All credit to the Go Authors.

func SerializeCertificate

func SerializeCertificate(certificate *tls.Certificate) (*pem.Block, *pem.Block, error)

SerializeCertificate serializes a TLS certificate into the cert and key PEM files.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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