mirror of
https://github.com/opnsense/src.git
synced 2026-06-12 02:00:31 -04:00
libsecureboot/README.rst clarify use of gpg
Clarify some language and provide an example of gpg use to generate a detached signature.
This commit is contained in:
parent
043d6a24b2
commit
f486ebb5e3
1 changed files with 13 additions and 4 deletions
|
|
@ -1,7 +1,8 @@
|
|||
libsecureboot
|
||||
*************
|
||||
|
||||
This library depends one way or another on verifying digital signatures.
|
||||
This library depends one way or another on verifying detached digital
|
||||
signatures.
|
||||
To do that, the necessary trust anchors need to be available.
|
||||
|
||||
The simplest (and most attractive for an embedded system) is to
|
||||
|
|
@ -16,7 +17,7 @@ provide access to the necessary trust anchors.
|
|||
That signing server is freely available - see
|
||||
http://www.crufty.net/sjg/docs/signing-server.htm
|
||||
|
||||
X.509 certificates chains offer a lot of flexibility over time and are
|
||||
X.509 certificate chains offer a lot of flexibility over time and are
|
||||
a great solution for an embedded vendor like Juniper or even
|
||||
FreeBSD.org, but are probably overkill for personal or small site use.
|
||||
|
||||
|
|
@ -74,8 +75,12 @@ header.
|
|||
Signatures
|
||||
----------
|
||||
|
||||
We expect ascii armored (``.asc``) detached signatures.
|
||||
Eg. signature for ``manifest`` would be in ``manifest.asc``
|
||||
We expect ascii armored (``.asc``) detached signatures
|
||||
Eg.::
|
||||
|
||||
gpg -a --detach-sign manifest
|
||||
|
||||
should produce the expected signature in ``manifest.asc``
|
||||
|
||||
We only support version 4 signatures using RSA (the default for ``gpg``).
|
||||
|
||||
|
|
@ -108,6 +113,10 @@ Ie. client sends a hash which during signing gets hashed again.
|
|||
So for Junos we define VE_ECDSA_HASH_AGAIN which causes ``verify_ec``
|
||||
to hash again.
|
||||
|
||||
Later I added a FakeHash class to the signing server so we could
|
||||
generate signatures compatible with our previous RSA scheme and
|
||||
others.
|
||||
|
||||
Otherwise our EC DSA and RSA signatures are the default used by
|
||||
OpenSSL - an original design goal was that a customer could verify our
|
||||
signatures using nothing but an ``openssl`` binary.
|
||||
|
|
|
|||
Loading…
Reference in a new issue