Documentation ¶
Index ¶
- func AddCertAuth(name string, ca []byte, fs file.Filesystem) (*ingress.SSLCert, error)
- func AddOrUpdateCertAndKey(name string, cert, key, ca []byte, fs file.Filesystem) (*ingress.SSLCert, error)
- func AddOrUpdateDHParam(name string, dh []byte, fs file.Filesystem) (string, error)
- func CreateSSLCert(name string, cert, key, ca []byte) (*ingress.SSLCert, error)
- func FullChainCert(in string, fs file.Filesystem) ([]byte, error)
- func GetFakeSSLCert() ([]byte, []byte)
- func IsValidHostname(hostname string, commonNames []string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCertAuth ¶
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, fs file.Filesystem) (*ingress.SSLCert, error)
AddOrUpdateCertAndKey creates a .pem file with the cert and the key with the specified name
func AddOrUpdateDHParam ¶
AddOrUpdateDHParam creates a dh parameters file with the specified name
func CreateSSLCert ¶
CreateSSLCert creates an SSLCert and avoids writing on disk
func FullChainCert ¶
func FullChainCert(in string, fs file.Filesystem) ([]byte, error)
FullChainCert checks if a certificate file contains issues in the intermediate CA chain Returns a new certificate with the intermediate certificates. If the certificate does not contains issues with the chain it return an empty byte array
func GetFakeSSLCert ¶
GetFakeSSLCert creates a Self Signed Certificate Based in the code https://golang.org/src/crypto/tls/generate_cert.go
func IsValidHostname ¶
IsValidHostname checks if a hostname is valid in a list of common names
Types ¶
This section is empty.