ldif

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSCAMasterList

type CSCAMasterList struct {
	Version  int
	CertList []asn1.RawValue `asn1:"set"`
}

CSCAMasterList represents a master list of Country Signing Certificate Authority (CSCA). See https://pkddownloadsg.icao.int/ for more info.

func ExtractMasterLists

func ExtractMasterLists(rawData [][]byte) ([]CSCAMasterList, error)

ExtractMasterLists extracts CSCA master lists from raw LDIF data

func (CSCAMasterList) ToX509

func (ml CSCAMasterList) ToX509() ([]*x509.Certificate, error)

ToX509 converts to X.509 certificates, ignoring x509.NonFatalErrors

type LDIF

type LDIF interface {
	ToX509() []*x509.Certificate
	ToPem() []string
	RawPubKeys() ([][]byte, error)
}

func FromFile

func FromFile(filename string) (LDIF, error)

FromFile creates new LDIF instance from file

func FromReader

func FromReader(r io.Reader) (LDIF, error)

FromReader creates new LDIF instance from file

func FromS3Bucket

func FromS3Bucket(ctx context.Context, bucketName string, fileName string) (LDIF, error)

FromS3Bucket creates new LDIF instance from ICAO list downloaded from remote S3 (like Google Storage or Amazon S3)

func NewLDIF

func NewLDIF(data []byte) (LDIF, error)

NewLDIF creates new LDIF instance from raw bytes

Jump to

Keyboard shortcuts

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