Documentation
¶
Overview ¶
Package util provides helper functions for the signer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertConfigs ¶
type CertConfigs struct { MacOSKeychain MacOSKeychain `json:"macos_keychain"` WindowsStore WindowsStore `json:"windows_store"` PKCS11 PKCS11 `json:"pkcs11"` }
CertConfigs is a container for various OS-specific ECP Configs.
type EnterpriseCertificateConfig ¶
type EnterpriseCertificateConfig struct {
CertConfigs CertConfigs `json:"cert_configs"`
}
EnterpriseCertificateConfig contains parameters for initializing signer.
func LoadConfig ¶
func LoadConfig(configFilePath string) (config EnterpriseCertificateConfig, err error)
LoadConfig retrieves the ECP config file.
type MacOSKeychain ¶
type MacOSKeychain struct {
Issuer string `json:"issuer"`
}
MacOSKeychain contains keychain parameters describing the certificate to use.
type PKCS11 ¶
type PKCS11 struct { Slot string `json:"slot"` // The hexadecimal representation of the uint36 slot ID. (ex:0x1739427) Label string `json:"label"` // The token label (ex: gecc) PKCS11Module string `json:"module"` // The path to the pkcs11 module (shared lib) UserPin string `json:"user_pin"` // Optional user pin to unlock the PKCS #11 module. If it is not defined or empty C_Login will not be called. }
PKCS11 contains PKCS#11 parameters describing the certificate to use.
type WindowsStore ¶
type WindowsStore struct { Issuer string `json:"issuer"` Store string `json:"store"` Provider string `json:"provider"` }
WindowsStore contains Windows key store parameters describing the certificate to use.
Click to show internal directories.
Click to hide internal directories.