From 67755c4dddc7c1e7a8d43be68dc7ae96f9e19e5b Mon Sep 17 00:00:00 2001 From: franzap <_@franzap.com> Date: Mon, 15 Jul 2024 16:11:21 -0300 Subject: [PATCH] PEM markers clarification --- 39.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/39.md b/39.md index ec0bcd17..26f9aab1 100644 --- a/39.md +++ b/39.md @@ -77,7 +77,7 @@ Identity: An OpenPGP fingerprint as described in the [openpgp4fpr URI scheme](ht Proof: A signature of the text `Verifying that I control the following Nostr public key: ""` in base64 format, unwrapped. -Public key material: The full OpenPGP public key in base64 format, unwrapped. +Public key material: The full OpenPGP public key (including `BEGIN`/`END` PEM markers) in base64 format, unwrapped. #### Example @@ -110,7 +110,7 @@ Identity: The X.509 certificate's SHA-256 fingerprint, lowercased. Proof: A signature of the text `Verifying that I control the following Nostr public key: ""` in base64 format, unwrapped. -Public key material: The full public key of the certificate in base64 format, unwrapped. +Public key material: The full public key (including `BEGIN`/`END` PEM markers) of the certificate in base64 format, unwrapped. #### Example @@ -141,8 +141,12 @@ openssl pkcs12 -in example.p12 -nocerts -nodes -out privatekey.pem echo 'Verifying that I control the following Nostr public key: ""' | openssl dgst -sha256 -sign privatekey.pem | openssl base64 -A ``` -Example command to extract the public key: +Example commands to extract the public key: ```bash openssl rsa -in privatekey.pem -pubout | base64 + +// or + +openssl ec -in privatekey.pem -pubout | base64 ``` \ No newline at end of file