Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SearchDHParamFile ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.