File: README.md

package info (click to toggle)
pesign 116-8.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,112 kB
  • sloc: ansic: 14,144; sh: 784; makefile: 226
file content (36 lines) | stat: -rw-r--r-- 887 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# pesign + efikeygen

Signing tools for PE-COFF binaries.  Compliant with the PE and Authenticode
specifications.

(These serve a similar purpose to Microsoft's
[SignTool.exe](http://msdn.microsoft.com/en-us/library/8s9b9yaz%28v=vs.80%29.aspx),
except for Linux.)

## Examples

Generate a key for use with pesign, stored on disk:

```
efikeygen -d /etc/pki/pesign -S -TYPE -c 'CN=Your Name Key' -n 'Custom Secureboot'
```

(where TYPE is m if you're only signing kernel modules, and k otherwise).

For more complex and secure use cases (e.g., hardware tokens), see
efikeygen man page (`man efikeygen`).

Sign a UEFI application using that key:

```
pesign -i grubx64.efi -o grubx64.efi.signed -c 'Custom Secureboot' -s
```

Show signatures on a UEFI application:

```
pesign -i grubx64.efi.signed -S
```

For more signing/verification operations, see the pesign man page (`man
pesign`).