Documentation ¶
Index ¶
- Variables
- func CalculateExposureKeysHMAC(keys []keyserverapi.ExposureKey, hmacKey []byte) ([]byte, error)
- func GetCertificateFingerprint(ctx context.Context, pair *X509KeyPair) (string, error)
- func GetCertificateSubject(ctx context.Context, pair *X509KeyPair) (string, error)
- func GetEfgsURLOrFail(env Environment) *urlutils.URL
- func NewEFGSClient(ctx context.Context, nbtlsPair *X509KeyPair) (*http.Client, error)
- type CertType
- type Environment
- type X509KeyPair
Constants ¶
This section is empty.
Variables ¶
var EfgsExtendedLogging = false
EfgsExtendedLogging Determines whether extended logging should be used - e.g. all raw EFGS requests and responses.
Functions ¶
func CalculateExposureKeysHMAC ¶
func CalculateExposureKeysHMAC(keys []keyserverapi.ExposureKey, hmacKey []byte) ([]byte, error)
CalculateExposureKeysHMAC calculates HMAC of given keys. Copied from Verification server code.
func GetCertificateFingerprint ¶ added in v0.5.0
func GetCertificateFingerprint(ctx context.Context, pair *X509KeyPair) (string, error)
GetCertificateFingerprint Gets fingerprint of given cert.
func GetCertificateSubject ¶ added in v0.5.0
func GetCertificateSubject(ctx context.Context, pair *X509KeyPair) (string, error)
GetCertificateSubject Gets subject of given cert.
func GetEfgsURLOrFail ¶ added in v0.5.0
func GetEfgsURLOrFail(env Environment) *urlutils.URL
GetEfgsURLOrFail Gets EFGS url from secrets and fails if it's not available.
func NewEFGSClient ¶ added in v0.5.0
NewEFGSClient Creates new secured client for EFGS.
Types ¶
type Environment ¶ added in v0.5.0
type Environment string
Environment Environment of EFGS.
const ( //EnvLocal Our local testing environment. EnvLocal Environment = "local" //EnvAcc EnvAcc env of EFGS. EnvAcc Environment = "acc" )
func GetEfgsEnvironmentOrFail ¶ added in v0.5.0
func GetEfgsEnvironmentOrFail() Environment
GetEfgsEnvironmentOrFail Gets EFGS environment from ENV variable and fails if it's not available.
type X509KeyPair ¶ added in v0.5.0
X509KeyPair X509 certificate and private key pair.
func LoadX509KeyPair ¶ added in v0.5.0
func LoadX509KeyPair(ctx context.Context, env Environment, certType CertType) (*X509KeyPair, error)
LoadX509KeyPair Loads certificate and key pair from Secrets Manager.