httpsig-key.md: correct the generating Ed25519 keys commands
No binary (build failed)
—
(log yok)
| @@ -32,7 +32,8 @@ The key is formatted as a series of hexadecimal digits in a single line. For | |
| With OpenSSL 3: | |
| openssl genpkey -algorithm ED25519 -out k.pem | |
| - | openssl pkey -in k.pem -outform RAW -out k.raw |
| - | xxd -p -c 64 k.raw | tr -d '\n' > k.hex |
| + | openssl pkey -in k.pem -text -noout | \ |
| + | grep -A3 ^priv: | \ |
| + | tr -cd '[:xdigit:]' > k.hex |
| Use `@k.hex` with `--httpsig-key`. | |
| @@ -43,8 +43,10 @@ PEM and other encodings are not supported; pass the raw key material as hex. | |
| With OpenSSL 3: | |
| - | openssl genpkey -algorithm ED25519 -out ed25519.pem |
| - | openssl pkey -in ed25519.pem -outform RAW | xxd -p -c 64 | tr -d '\n' > key.hex |
| + | openssl genpkey -algorithm ED25519 -out k.pem |
| + | openssl pkey -in k.pem -text -noout | \ |
| + | grep -A3 ^priv: | \ |
| + | tr -cd '[:xdigit:]' > k.hex |
| The `key.hex` file is one line of 64 hexadecimal digits. | |