filesigner

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

func LookupEnvOrString(key string, defaultVal string) string

LookupEnvOrString gets a value from the environment or returns the specified default value

Types

This section is empty.

Jump to

Keyboard shortcuts

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