From f3c049e210f01e797e68528bf6b998b3912b72b3 Mon Sep 17 00:00:00 2001 From: Nathan Price Date: Sun, 19 Jan 2025 19:04:28 -0500 Subject: [PATCH] vault backup: 2025-01-19 19:04:28 --- Docker Images/quartz/use xxd in docker.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Docker Images/quartz/use xxd in docker.md b/Docker Images/quartz/use xxd in docker.md index 0c5d09f..1d97699 100644 --- a/Docker Images/quartz/use xxd in docker.md +++ b/Docker Images/quartz/use xxd in docker.md @@ -1,7 +1,10 @@ ```bash +# on host docker run --rm -it alpine:latest sh +# in container apk add xxd openssl -echo PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX: $(openssl ecparam --name secp256k1 --genkey --noout --outform DER | tail --bytes=+8 | head --bytes=32 | xxd --plain --cols 32) +# everything after this is one command +echo PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX: $(openssl ecparam --name secp256k1 --genkey --noout --outform DER | tail -c +8 | head -c 32 | xxd --plain --cols 32) ``` \ No newline at end of file