generate

package
Version: v1.7.24 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDomain = "TRAEFIK DEFAULT CERT"

DefaultDomain Traefik domain for the default certificate

Variables

This section is empty.

Functions

func DefaultCertificate

func DefaultCertificate() (*tls.Certificate, error)

DefaultCertificate generates random TLS certificates

func KeyPair

func KeyPair(domain string, expiration time.Time) ([]byte, []byte, error)

KeyPair generates cert and key files

func PemCert

func PemCert(privKey *rsa.PrivateKey, domain string, expiration time.Time) ([]byte, error)

PemCert generates PEM cert file

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL