ssl

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: Apache-2.0 Imports: 20 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCertAuth

func AddCertAuth(name string, ca, crl []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(o []string, cn string, dns []string) (cert, key []byte)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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