This repository has been archived by the owner on Oct 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.bat text eol=crlf | ||
*.sh text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |