clean up session ticket rotation scripts

This commit is contained in:
Daniel Micay 2024-03-20 22:43:26 -04:00
parent f35dc08868
commit e1df22a68f
2 changed files with 4 additions and 5 deletions

View File

@ -9,7 +9,6 @@ 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
for i in {1..4}; do
head -c 80 </dev/random >$i.key
done

View File

@ -9,7 +9,7 @@ cd /etc/nginx/session-ticket-keys
rsync -I 2.key 1.key
rsync -I 3.key 2.key
rsync -I 4.key 3.key
openssl rand -out new.key 80
head -c 80 </dev/urandom >new.key
rsync -I new.key 4.key
rm new.key
nginx -s reload