signatures

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckArtifactSignatureIsValid added in v0.2.1

func CheckArtifactSignatureIsValid(fs types.KairosFS, artifact string, logger types.KairosLogger) error

CheckArtifactSignatureIsValid checks that a given efi artifact is signed properly with a signature that would allow it to boot correctly in the current node if secureboot is enabled

func ExtractCertsFromSignatureDatabase added in v0.1.2

func ExtractCertsFromSignatureDatabase(database *signature.SignatureDatabase) []*x509.Certificate

ExtractCertsFromSignatureDatabase returns a []*x509.Certificate from a *signature.SignatureDatabase

func GetAllCerts

func GetAllCerts() (types.CertList, error)

GetAllCerts returns a list of certs in the system

func GetAllFullCerts added in v0.1.2

func GetAllFullCerts() (types.CertListFull, error)

GetAllFullCerts returns a list of certs in the system. Full cert, including raw data of the cert

func GetKeyDatabase

func GetKeyDatabase(sigType string) (*signature.SignatureDatabase, error)

GetKeyDatabase returns a single signature.SignatureDatabase for a given type

Types

This section is empty.

Jump to

Keyboard shortcuts

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