From 852328f8a94d39d209251c016a9e0030ef74c24b Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Tue, 13 Sep 2022 22:47:38 +0200 Subject: [PATCH] Neaten up Migrate-SecureBootKey.md --- Migrate-SecureBootKey.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Migrate-SecureBootKey.md b/Migrate-SecureBootKey.md index d8e23ad..0d38b36 100644 --- a/Migrate-SecureBootKey.md +++ b/Migrate-SecureBootKey.md @@ -1,13 +1,13 @@ -# Migrate Secureboot KEY +# Migrate Secureboot key ## Export Ubuntu Copy following files -Private Key: /var/lib/shim-signed/mok/MOK.priv -Public Key: /var/lib/shim-signed/mok/MOK.der +* Private Key: /var/lib/shim-signed/mok/MOK.priv +* Public Key: /var/lib/shim-signed/mok/MOK.der ## Export Fedora -Copy following files -Symlink to Private Key: /etc/pki/akmods/private/private_key.priv -Symlink to Public Key: /etc/pki/akmods/certs/private_key.priv +Copy following files +* Symlink to Private Key: /etc/pki/akmods/private/private_key.priv +* Symlink to Public Key: /etc/pki/akmods/certs/private_key.priv ## Import Ubuntu Using source.priv and source.der files in current directory to import @@ -20,6 +20,7 @@ cp source.der /var/lib/shim-signed/mok/MOK.der Using source.priv and source.der files in current directory to import ``` dnf install akmods kmodtool + KEYNAME="$(hostname)"-"$(od -vAn -N4 -tu4 < /dev/urandom | awk '{print $1}')" cp source.der /etc/pki/akmods/certs/${KEYNAME}.der