mirror of
https://github.com/bitwarden/server.git
synced 2025-01-05 19:17:36 +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
|
cp /etc/bitwarden/identity.pfx /app/Sso/identity.pfx
|
||||||
|
|
||||||
# Generate SSL certificates
|
# 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 \
|
openssl req \
|
||||||
-x509 \
|
-x509 \
|
||||||
-newkey rsa:4096 \
|
-newkey rsa:4096 \
|
||||||
|
Loading…
Reference in New Issue
Block a user