database

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package database generates SecureBoot auto-enrollment database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name     string
	Contents []byte
}

Entry is a UEFI database entry.

func Generate

func Generate(enrolledCertificate []byte, signer pesign.CertificateSigner, opts ...Option) ([]Entry, error)

Generate generates a UEFI database to enroll the signing certificate.

ref: https://blog.hansenpartnership.com/the-meaning-of-all-the-uefi-keys/

type Option added in v1.8.0

type Option func(*Options)

Option is a functional option for Generate.

func IncludeWellKnownCertificates added in v1.8.0

func IncludeWellKnownCertificates(v bool) Option

IncludeWellKnownCertificates is an option to include well-known certificates.

type Options added in v1.8.0

type Options struct {
	IncludeWellKnownCertificates bool
}

Options for Generate.

Jump to

Keyboard shortcuts

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