mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-11 00:43:10 -06:00
docker/generate-keys.sh: Make certs directory if it doesn't exist
This commit is contained in:
parent
9d8d27ef25
commit
bdf62ef389
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
test -d certs || mkdir -p certs
|
||||||
|
|
||||||
# generate self-signed SSL cert (unlike synapse, dendrite doesn't autogen yet)
|
# generate self-signed SSL cert (unlike synapse, dendrite doesn't autogen yet)
|
||||||
# N.B. to specify the right CN if needed
|
# N.B. to specify the right CN if needed
|
||||||
test -f certs/server.key || openssl req -x509 -newkey rsa:4096 -keyout certs/server.key -out certs/server.crt -days 3650 -nodes -subj /CN=$(hostname)
|
test -f certs/server.key || openssl req -x509 -newkey rsa:4096 -keyout certs/server.key -out certs/server.crt -days 3650 -nodes -subj /CN=$(hostname)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue