Neaten up Migrate-SecureBootKey.md
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
# Migrate Secureboot KEY
|
# Migrate Secureboot key
|
||||||
## Export Ubuntu
|
## Export Ubuntu
|
||||||
Copy following files
|
Copy following files
|
||||||
Private Key: /var/lib/shim-signed/mok/MOK.priv
|
* Private Key: /var/lib/shim-signed/mok/MOK.priv
|
||||||
Public Key: /var/lib/shim-signed/mok/MOK.der
|
* Public Key: /var/lib/shim-signed/mok/MOK.der
|
||||||
|
|
||||||
## Export Fedora
|
## Export Fedora
|
||||||
Copy following files
|
Copy following files
|
||||||
Symlink to Private Key: /etc/pki/akmods/private/private_key.priv
|
* Symlink to Private Key: /etc/pki/akmods/private/private_key.priv
|
||||||
Symlink to Public Key: /etc/pki/akmods/certs/private_key.priv
|
* Symlink to Public Key: /etc/pki/akmods/certs/private_key.priv
|
||||||
|
|
||||||
## Import Ubuntu
|
## Import Ubuntu
|
||||||
Using source.priv and source.der files in current directory to import
|
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
|
Using source.priv and source.der files in current directory to import
|
||||||
```
|
```
|
||||||
dnf install akmods kmodtool
|
dnf install akmods kmodtool
|
||||||
|
|
||||||
KEYNAME="$(hostname)"-"$(od -vAn -N4 -tu4 < /dev/urandom | awk '{print $1}')"
|
KEYNAME="$(hostname)"-"$(od -vAn -N4 -tu4 < /dev/urandom | awk '{print $1}')"
|
||||||
|
|
||||||
cp source.der /etc/pki/akmods/certs/${KEYNAME}.der
|
cp source.der /etc/pki/akmods/certs/${KEYNAME}.der
|
||||||
|
|||||||
Reference in New Issue
Block a user