ssl

package
v0.0.0-...-c24f27c Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SearchDHParamFile

func SearchDHParamFile(baseDir string) string

SearchDHParamFile iterates all the secrets mounted inside the /etc/nginx-ssl directory in order to find a file with the name dhparam.pem. If such file exists it will returns the path. If not it just returns an empty string

Types

type Certificate

type Certificate struct {
	Cert    string
	Key     string
	Cname   []string
	Valid   bool
	Default bool
}

Certificate contains the cert, key and the list of valid hostnames

func CreateSSLCerts

func CreateSSLCerts(baseDir string) []Certificate

CreateSSLCerts reads the content of the /etc/nginx-ssl directory and verifies the cert and key extracting the common names for this pair

func GetSSLHost

func GetSSLHost(serverName string, certs []Certificate) Certificate

GetSSLHost checks if in one of the secrets that contains SSL certificates could be used for the specified server name

Jump to

Keyboard shortcuts

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