Skip to main content

A tool to enroll secure boot keys in OVMF_VARS.fd

Build & Install

python3 -m pip install --upgrade build
python3 -m build
python3 -m pip install dist/ovmfkeyenroll-*.whl

Usage

You can copy OVMF_VAR.fd to current path.

This is to enroll PK, KEK and DB keys and generate OVMF_VAR.sb.fd:

ovmfkeyenroll -fd $PWD/OVMF_VARS.fd \
-pk <pk-key-guid> <absolute-path-to-PK.cer> \
-kek <kek-guid> <absolute-path-to-KEK.cer> \
-db <db-key-guid> <absolute-path-to-DB.cer>

The keys have been successfully enrolled:

VariableFV: TimeBasedAuthenticated - Supported
Var Store: add PK - Success
Write Variable(PK) - Success

Enroll PK variable -- Success

VariableFV: TimeBasedAuthenticated - Supported
Var Store: add KEK - Success
Write Variable(KEK) - Success

Enroll KEK variable -- Success

VariableFV: TimeBasedAuthenticated - Supported
Var Store: add db - Success
Write Variable(db) - Success

Enroll db variable -- Success

VariableFV: TimeBasedAuthenticated - Supported
Var Store: add SecureBootEnable - Success
Write Variable(SecureBootEnable) - Success

Enroll SecureBootEnable variable -- Success

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ovmfkeyenroll-1.2.1.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ovmfkeyenroll-1.2.1-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file ovmfkeyenroll-1.2.1.tar.gz.

File metadata

  • Download URL: ovmfkeyenroll-1.2.1.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for ovmfkeyenroll-1.2.1.tar.gz
Algorithm Hash digest
SHA256 512a8d4047efe85f7d65b18b763d5c27e7bf965b7d66f41e9d492513736e663a
MD5 25db97e2a1921793d0bbd00268e27a6e
BLAKE2b-256 4b46dc753489c70102a0ae259e843ce381d44d6605f46d3b9254352e3170ff2b

See more details on using hashes here.

File details

Details for the file ovmfkeyenroll-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: ovmfkeyenroll-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for ovmfkeyenroll-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e7748047177e80f312b3518f44f7166089551b820b057c6e532453bb2f81c2bf
MD5 cac1b6f184a6c945dbc41f9703051d34
BLAKE2b-256 1b8b071b550425062b5317fc52500235be19403bd161ea97180f29c8d6064e14

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 files

1.2.0

2 files

1.1.0

2 files

1.0.9

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page