mirror of https://github.com/samply/bridgehead.git
Change cert permission and location
This commit is contained in:
parent
b4581e8b3a
commit
9dd3c24a6d
|
@ -5,6 +5,9 @@ if [ "$ENABLE_DATASHIELD" == true ];then
|
|||
OVERRIDE+=" -f ./$PROJECT/modules/datashield-compose.yml"
|
||||
fi
|
||||
OPAL_DB_PASSWORD="$(echo \"This is a salt string to generate one consistent password for Opal. It is not required to be secret.\" | openssl rsautl -sign -inkey /etc/bridgehead/pki/${SITE_ID}.priv.pem | base64 | head -c 30)"
|
||||
if [ ! -e "/etc/bridgehead/traefik-tls/opal-cert.pem" ]; then
|
||||
openssl req -x509 -newkey rsa:4096 -nodes -keyout /etc/bridgehead/traefik-tls/opal-key.pem -out /etc/bridgehead/traefik-tls/opal-cert.pem -days 3650 -subj "/CN=$HOST"
|
||||
if [ ! -e "/etc/bridgehead/trusted-ca-certs/opal-cert.pem" ]; then
|
||||
openssl req -x509 -newkey rsa:4096 -nodes -keyout /etc/bridgehead/trusted-ca-certs/opal-key.pem -out /etc/bridgehead/trusted-ca-certs/opal-cert.pem -days 3650 -subj "/CN=${HOST:-opal}/C=DE"
|
||||
chmod g+r /etc/bridgehead/trusted-ca-certs/opal-key.pem
|
||||
chown bridgehead:docker /etc/bridgehead/trusted-ca-certs/opal-key.pem
|
||||
chown bridgehead:docker /etc/bridgehead/trusted-ca-certs/opal-cert.pem
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue