Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

Commit

Permalink
add .gitattributes
Browse files Browse the repository at this point in the history
  • Loading branch information
a1ive committed Aug 2, 2018
1 parent 8a231ae commit d349ec6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitattributes
@@ -0,0 +1,2 @@
*.bat text eol=crlf
*.sh text eol=lf
2 changes: 1 addition & 1 deletion 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
2 changes: 2 additions & 0 deletions 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

0 comments on commit d349ec6

Please sign in to comment.