Skip to contentSkip to conversation

doc: clarify openssl-based key and certificate generation process

PATCH In review Andreas Dannenberg 2 participants 2 messages Mar 23, 2016 – Apr 2, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: clarify openssl-based key and certificate generation process

Add some basic clarification that the dev.key file generated by OpenSSL contains both the public and private key, and further highlight that the certificate generated here contains the public key only.

---
 doc/uImage.FIT/signature.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
doc/uImage.FIT/signature.txt +4 -4
index b2f89fc..e487401 100644
@@ -62,14 +62,14 @@ placed alongside rsa.c, and its functions added to the table in image-sig.c
 also.
 
 
-Creating an RSA key and certificate
------------------------------------
-To create a new public key, size 2048 bits:
+Creating an RSA key pair and certificate
+----------------------------------------
+To create a new public/private key pair, size 2048 bits:
 
 $ openssl genpkey -algorithm RSA -out keys/dev.key \
     -pkeyopt rsa_keygen_bits:2048 -pkeyopt rsa_keygen_pubexp:65537
 
-To create a certificate for this:
+To create a certificate for this containing the public key:
 
 $ openssl req -batch -new -x509 -key keys/dev.key -out keys/dev.crt
 
Signature · 1 line
2.6.4
#1 lore raw
Quoted 5 lines · Andreas Dannenberg

Add some basic clarification that the dev.key file generated by OpenSSL contains both the public and private key, and further highlight that the certificate generated here contains the public key only.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160401/896669a4/attachment.sig>