diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 001f618..e7f4dde 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -2,7 +2,9 @@ set -e if [[ -z "${CUSTOM_CERT}" ]]; then + echo "Use custom certificate" if [ ! -f /cert/private.key ]; then + echo "Generate new certificate" openssl req -newkey rsa:2048 -sha256 -nodes -keyout /cert/private.key -x509 -days 1000 -out /cert/public.pem -subj "/C=US/ST=Berlin/L=Berlin/O=my_org/CN=my_cn" fi fi