ssl

package
v0.0.0-...-7669b99 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCertAuth

func AddCertAuth(name string, ca []byte) (*ingress.SSLCert, error)

AddCertAuth creates a .pem file with the specified CAs to be used in Cert Authentication If it's already exists, it's clobbered.

func AddOrUpdateCertAndKey

func AddOrUpdateCertAndKey(name string, cert, key, ca []byte) (*ingress.SSLCert, error)

AddOrUpdateCertAndKey creates a .pem file wth the cert and the key with the specified name

func AddOrUpdateDHParam

func AddOrUpdateDHParam(name string, dh []byte) (string, error)

AddOrUpdateDHParam creates a dh parameters file with the specified name

func GetFakeSSLCert

func GetFakeSSLCert() ([]byte, []byte)

GetFakeSSLCert creates a Self Signed Certificate Based in the code https://golang.org/src/crypto/tls/generate_cert.go

func PemSHA1

func PemSHA1(filename string) string

PemSHA1 returns the SHA1 of a pem file. This is used to reload NGINX in case a secret with a SSL certificate changed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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