Documentation
¶
Index ¶
- func GetConfigPrivateKey() (privateKey any, certificate *x509.Certificate, caCerts []*x509.Certificate, ...)
- func GetPrivateKeyFromFile(fileName string, password string) (privateKey any, certificate *x509.Certificate, caCerts []*x509.Certificate, ...)
- func LookupEnvOrString(key string, defaultVal string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigPrivateKey ¶
func GetConfigPrivateKey() (privateKey any, certificate *x509.Certificate, caCerts []*x509.Certificate, err error)
GetConfigPrivateKey retrieves the private key from a PKCS12 file in the following locations: 1) the location specified in the environment variable CERT_FILE_PATH. 2) $HOME/.certs/testcert.pfx.
The password used is the following: 1) specified in the environment variable CERT_PASSWORD. 2) the content of the file specified in the env variable CERT_PASSWORD_FILE.
func GetPrivateKeyFromFile ¶
func GetPrivateKeyFromFile(fileName string, password string) (privateKey any, certificate *x509.Certificate, caCerts []*x509.Certificate, err error)
func LookupEnvOrString ¶
LookupEnvOrString gets a value from the environment or returns the specified default value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.