...

Package util

import "github.com/googleapis/enterprise-certificate-proxy/internal/signer/util"
Overview
Index

Overview ▾

Package util provides helper functions for the signer.

type CertConfigs

CertConfigs is a container for various OS-specific ECP Configs.

type CertConfigs struct {
    MacOSKeychain MacOSKeychain `json:"macos_keychain"`
    WindowsStore  WindowsStore  `json:"windows_store"`
    PKCS11        PKCS11        `json:"pkcs11"`
}

type EnterpriseCertificateConfig

EnterpriseCertificateConfig contains parameters for initializing signer.

type EnterpriseCertificateConfig struct {
    CertConfigs CertConfigs `json:"cert_configs"`
}

func LoadConfig

func LoadConfig(configFilePath string) (config EnterpriseCertificateConfig, err error)

LoadConfig retrieves the ECP config file.

type MacOSKeychain

MacOSKeychain contains keychain parameters describing the certificate to use.

type MacOSKeychain struct {
    Issuer string `json:"issuer"`
}

type PKCS11

PKCS11 contains PKCS#11 parameters describing the certificate to use.

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.
}

type WindowsStore

WindowsStore contains Windows key store parameters describing the certificate to use.

type WindowsStore struct {
    Issuer   string `json:"issuer"`
    Store    string `json:"store"`
    Provider string `json:"provider"`
}