cafiles

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Overview

cafiles can fetch CA certificate and private key PEM files from many storage backends. PEM encoded CA files can be fetched from local filesystem, AWS S3, or AWS Secrets Manager.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCertificate

func GetCertificate(ctx context.Context, uri string) (uuid.UUID, *x509.Certificate, error)

GetCertificate returns a namespace and a bifrost certificate from uri. uri can be a relative or absolute file path, file://... uri, s3://... uri, or an AWS S3 or AWS Secrets Manager ARN. The certificate is validated before returning.

func GetPrivateKey

func GetPrivateKey(ctx context.Context, uri string) (*ecdsa.PrivateKey, error)

GetPrivateKey retrieves a PEM encoded private key from uri. uri can be one of a relative or absolute file path, file://... uri, s3://... uri, or an AWS S3 or AWS Secrets Manager ARN.

Types

This section is empty.

Jump to

Keyboard shortcuts

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