Giter Site home page Giter Site logo

mkefikeys's Introduction

mkefikeys

To take full control of you computer's SecureBoot platform you need to generate a custom set of keys and install them in your computer's firmware. Information on SecureBoot in general can be found on Roderick W. Smith's pages and various wiki pages.

create signing keys

This makefile automates the creation of the required certificates and signed updates for your firmware. GNU make 3.81+ is required.

mkefikeys auth

configure

The filenames can be customized with make variables PK, KEK and DB. Certificate subjects can be customized by setting a format string in SUBJECT, where %kt will be replaced with the key type. RSA key bits, validity period and key encryption can be configured with BITS, DAYS and ENCRYPT.

mkefikeys auth SUBJECT="/O=Acme Ltd./OU=SecureBoot/CN=My %kt/" ENCRYPT=yes

Install the *.auth files with your UEFI's builtin key management tool or use KeyTool. Then use sbsign or mksignkernels to sign your kernels with PlatformKey.{key,crt}.

Should you need DER-encoded certificates for your firmware, you can output them to *.cer files:

mkefikeys der

You can also use different settings for each certificate with the pk, kek and db targets:

mkefikeys pk kek ENCRYPT=yes
mkefikeys db
mkefikeys auth

install

Install this programm with the included install.mk makefile. It optionally accepts a DESTDIR argument for packaging:

sudo make -f install.mk install DESTDIR=${pkgdir}

Arch Linux users can also use makepkg -i in this directory to install mkefikeys-git or install a tagged version from AUR with $aurhelper -S mkefikeys.

LICENSE

MIT License

Copyright (c) 2018 Anton Semjonov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

mkefikeys's People

Contributors

ansemjo avatar

Watchers

 avatar  avatar

Forkers

auberginer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.