secureboot

package
v0.6.3 Latest Latest
Warning

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

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

Documentation

Overview

Package secureboot implements handling SecureBoot options.

Index

Constants

This section is empty.

Variables

View Source
var ErrDisabled = fmt.Errorf("secure boot is disabled")

ErrDisabled is returned when SecureBoot is disabled.

Functions

This section is empty.

Types

type Options

type Options struct {
	// Enable SecureBoot asset generation.
	Enabled bool

	// File-based approach.
	SigningKeyPath, SigningCertPath string
	PCRKeyPath                      string

	// Azure Key Vault approach.
	AzureKeyVaultURL     string
	AzureCertificateName string
	AzureKeyName         string
}

Options configures SecureBoot.

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service handles SecureBoot configuration.

func NewService

func NewService(opts Options) (*Service, error)

NewService initializes SecureBoot from configuration.

func (*Service) GetSecureBootAssets

func (s *Service) GetSecureBootAssets() (*profile.SecureBootAssets, error)

GetSecureBootAssets returns SecureBoot assets for the imager profile.

func (*Service) GetSecureBootSigningCert

func (s *Service) GetSecureBootSigningCert() ([]byte, error)

GetSecureBootSigningCert returns SecureBoot signing key PEM-encoded.

Jump to

Keyboard shortcuts

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