mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 00:45:53 -05:00
PEM markers clarification
This commit is contained in:
parent
b40d6efbb8
commit
67755c4ddd
10
39.md
10
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: "<npub encoded 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: "<npub encoded 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: "<npub encoded 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
|
||||
```
|
Loading…
Reference in New Issue
Block a user