Skip to content

Commit

Permalink
don't use a keyfile for ssl cert (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
antondlr authored Jul 18, 2024
1 parent 4141c17 commit b9476ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions docker-assets/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ if [ $SSL_ENABLED = true ] ; then
## generate cert if not present
if [ ! -f /certs/cert.pem ] ; then
mkdir -p /certs
openssl req -x509 -newkey rsa:4096 -keyout /certs/key.pem -out /certs/cert.pem -days 365 -passout pass:'sigmaprime' -subj "/C=AU/CN=siren/[email protected]"
echo 'sigmaprime' > /certs/key.pass
openssl req -nodes -x509 -newkey rsa:4096 -keyout /certs/key.pem -out /certs/cert.pem -days 365 -subj "/C=AU/CN=siren/[email protected]"
fi
ln -s /app/docker-assets/siren-https.conf /etc/nginx/conf.d/siren-https.conf
fi
Expand Down
1 change: 0 additions & 1 deletion docker-assets/siren-https.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ server {
listen 443 ssl;
ssl_certificate /certs/cert.pem;
ssl_certificate_key /certs/key.pem;
ssl_password_file /certs/key.pass;
ssl_protocols TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;

Expand Down

0 comments on commit b9476ca

Please sign in to comment.