feat(openbao): lab7 enable TLS and persistent Raft storage
This commit is contained in:
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
set -- openbao
|
||||
. "$(dirname "$0")/dependency-pki.sh"
|
||||
printf '%s\n' 'subjectAltName=DNS:openbao,DNS:localhost,IP:127.0.0.1' extendedKeyUsage=serverAuth basicConstraints=critical,CA:FALSE > "$tmp/ext"
|
||||
openssl req -new -key "$tmp/server.key" -subj /CN=openbao -out "$tmp/request"
|
||||
openssl x509 -req -days 30 -sha256 -in "$tmp/request" -CA "$ca/ca.crt" -CAkey "$ca/ca.key" -set_serial "0x$(openssl rand -hex 16)" -extfile "$tmp/ext" -out "$tmp/server.crt"
|
||||
rm "$tmp/request" "$tmp/ext"
|
||||
finish
|
||||
Reference in New Issue
Block a user