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:
parent
e340cba8fc
commit
2469e10110
2
docker-unified/entrypoint.sh
Normal file → Executable file
2
docker-unified/entrypoint.sh
Normal file → Executable 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 \
|
||||
|
Loading…
Reference in New Issue
Block a user