add session ticket key management scripts

This commit is contained in:
Daniel Micay 2023-07-09 18:04:17 -04:00
parent eb9a4ef2d1
commit 462bdc8599
5 changed files with 59 additions and 0 deletions

View file

@ -0,0 +1,15 @@
#!/bin/bash
set -o errexit -o nounset -o pipefail
umask 077
mkdir -p /etc/nginx/session-ticket-keys
mount -t ramfs -o mode=700 ramfs /etc/nginx/session-ticket-keys
cd /etc/nginx/session-ticket-keys
openssl rand -out 1.key 80
openssl rand -out 2.key 80
openssl rand -out 3.key 80
openssl rand -out 4.key 80