mirror of
https://github.com/bitwarden/server
synced 2025-12-11 13:53:40 +00:00
Respect name set in BW_SSL_KEY for cert generation (#2490)
This commit is contained in:
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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user