modernleft-docs/Docker Images/quartz/Generate PDS_PLC_ROTATION_KEY.md

17 lines
799 B
Markdown
Raw Normal View History

2025-01-20 00:09:31 +00:00
---
title: PDS_PLC_ROTATION_KEY in a container
draft: false
date: 2025-01-19
---
2025-01-20 00:14:28 +00:00
Unraid does not come with the `xxd` command installed. There used to be a package called NerdTools that I used to use but it looks like it was removed. I do not recall if you can use `docker run` in Unraid, but these commands can be used. A quick google indicates [windows users can use the docker cli](https://learn.microsoft.com/en-us/virtualization/windowscontainers/quick-start/set-up-environment?tabs=dockerce).
2025-01-20 00:09:31 +00:00
```bash
# on host
docker run --rm -it alpine:latest sh
# in container
apk add xxd openssl
# 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)
```