mirror of
https://github.com/matter-labs/teepot.git
synced 2025-07-21 23:23:57 +02:00
feat: initial commit
Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
parent
aff4dd30bd
commit
89ffbd35a8
123 changed files with 16508 additions and 0 deletions
17
vault/start.sh
Normal file
17
vault/start.sh
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
if [ ! -f /opt/vault/tls/tls.ok ]; then
|
||||
# Generate the TLS certificates
|
||||
cd /opt/vault/tls
|
||||
cp ../cacert.pem ../cakey.pem ../vault-csr.conf .
|
||||
openssl req -new -newkey rsa:4096 -keyout tls.key -out vault.csr \
|
||||
-config vault-csr.conf -extensions v3_req
|
||||
openssl x509 -req -in vault.csr -days 365 -CA cacert.pem -CAkey cakey.pem -CAcreateserial \
|
||||
-out tls_single.crt -extensions v3_req -extfile vault-csr.conf
|
||||
cat tls_single.crt cacert.pem >> tls.crt
|
||||
echo ok > tls.ok
|
||||
fi
|
||||
cd /opt/vault
|
||||
|
||||
# Start the vault server
|
||||
exec vault server -config=/opt/vault/config.hcl -log-level=trace
|
Loading…
Add table
Add a link
Reference in a new issue