mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-07-23 06:50:40 -04:00
add session ticket key management scripts
This commit is contained in:
parent
eb9a4ef2d1
commit
462bdc8599
5 changed files with 59 additions and 0 deletions
15
nginx-rotate-session-ticket-keys
Executable file
15
nginx-rotate-session-ticket-keys
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -o errexit -o nounset -o pipefail
|
||||
|
||||
umask 077
|
||||
|
||||
cd /etc/nginx/session-ticket-keys
|
||||
|
||||
rsync -It 2.key 1.key
|
||||
rsync -It 3.key 2.key
|
||||
rsync -It 4.key 3.key
|
||||
openssl rand -out new.key 80
|
||||
rsync -It new.key 4.key
|
||||
rm new.key
|
||||
nginx -s reload
|
Loading…
Add table
Add a link
Reference in a new issue