Neaten up Migrate-SecureBootKey.md
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user