mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-01-03 02:50:47 -05:00
clean up session ticket rotation scripts
This commit is contained in:
parent
f35dc08868
commit
e1df22a68f
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user