diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..dcf6ce64 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +*.bat text eol=crlf +*.sh text eol=lf diff --git a/gencrt.sh b/gencrt.sh index a457d16d..ec518802 100755 --- a/gencrt.sh +++ b/gencrt.sh @@ -1,4 +1,4 @@ #!/usr/bin/env sh -openssl req -newkey rsa:2048 -nodes -keyout test-cert.key -config ./secureboot/openssl.cnf -new -x509 -sha256 -days 36500 -subj "/CN=Canonical Ltd." -out test-cert.crt +openssl req -newkey rsa:2048 -nodes -keyout test-cert.key -config ./secureboot/openssl.cnf -new -x509 -sha256 -days 36500 -subj "/CN=a1ive@github" -out test-cert.crt openssl x509 -in test-cert.crt -out test-cert.cer -outform DER #sbsign --key test-cert.key --cert test-cert.crt grubfmx64.efi diff --git a/sign.sh b/sign.sh index 6fdfea07..4e127d84 100755 --- a/sign.sh +++ b/sign.sh @@ -1,3 +1,5 @@ #!/usr/bin/env sh sbsign --key test-cert.key --cert test-cert.crt grubfmx64.efi sbsign --key test-cert.key --cert test-cert.crt grubfmia32.efi +mv grubfmx64.efi.signed grubfmx64.efi +mv grubfmia32.efi.signed grubfmia32.efi