docker/generate-keys.sh: Make certs directory if it doesn't exist

This commit is contained in:
Robert Swain 2017-06-27 12:11:03 +02:00
parent 9d8d27ef25
commit bdf62ef389

View file

@ -2,6 +2,8 @@
set -e
test -d certs || mkdir -p certs
# generate self-signed SSL cert (unlike synapse, dendrite doesn't autogen yet)
# 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)