graphene-os-server-infrastr.../create-session-ticket-keys
Daniel Micay 17f0ec527d cleanly phase in new TLS session ticket keys
This closes a small window where new workers could give keys not
accepted by the old workers before they're gracefully shut down. This
will also be needed when syncing keys across a cluster.
2025-10-28 02:48:49 -04:00

11 lines
183 B
Bash
Executable file

#!/bin/bash
set -o errexit -o nounset -o pipefail
cd /etc/session-ticket-keys
for i in next.key {1..4}.key; do
head -c 80 </dev/random >$i
done
cat next.key {1..4}.key > keys