1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-31 18:27:49 +01:00

Respect name set in BW_SSL_KEY for cert generation (#2490)

This commit is contained in:
accolon 2022-12-13 14:56:03 +01:00 committed by GitHub
parent e340cba8fc
commit 2469e10110
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
docker-unified/entrypoint.sh Normal file → Executable file
View File

@ -48,7 +48,7 @@ cp /etc/bitwarden/identity.pfx /app/Identity/identity.pfx
cp /etc/bitwarden/identity.pfx /app/Sso/identity.pfx
# Generate SSL certificates
if [ "$BW_ENABLE_SSL" == "true" -a ! -f /etc/bitwarden/ssl.key ]; then
if [ "$BW_ENABLE_SSL" == "true" -a ! -f /etc/bitwarden/${BW_SSL_KEY:-ssl.key} ]; then
openssl req \
-x509 \
-newkey rsa:4096 \