2025-01-19 23:59:32 +00:00
|
|
|
```bash
|
2025-01-20 00:04:28 +00:00
|
|
|
# on host
|
2025-01-19 23:59:32 +00:00
|
|
|
docker run --rm -it alpine:latest sh
|
|
|
|
|
2025-01-20 00:04:28 +00:00
|
|
|
# in container
|
2025-01-19 23:59:32 +00:00
|
|
|
apk add xxd openssl
|
|
|
|
|
2025-01-20 00:04:28 +00:00
|
|
|
# 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)
|
2025-01-19 23:59:32 +00:00
|
|
|
```
|