cert

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2026 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadCertificates added in v1.1.1

func DownloadCertificates(urls []string, timeout time.Duration, saveDir string) (string, func(), error)

func GetCertFiles

func GetCertFiles(path string) ([]string, error)

func ParseCertificate added in v1.1.1

func ParseCertificate(data []byte) (*x509.Certificate, error)

Types

type Builder

type Builder interface {
	Build(any) *node.Node
}

type Info

type Info struct {
	Cert     *x509.Certificate
	FilePath string
	Hash     string
	Position int
	Type     string
}

func BuildChain

func BuildChain(certs []*Info) ([]*Info, error)

func LoadCertificates

func LoadCertificates(path string) ([]*Info, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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