Change TLS certificate owner group to ssl-cert
This commit is contained in:
parent
16331eb3d1
commit
4173d96e84
@ -87,6 +87,7 @@ apt-get -y --no-install-recommends install nginx-light uwsgi uwsgi-plugin-python
|
|||||||
|
|
||||||
# Create a self-signed certificate
|
# Create a self-signed certificate
|
||||||
openssl req -x509 -new -out /etc/ssl/certs/services.pem -keyout /etc/ssl/private/services.key -nodes -days 3654 -subj "/C=CZ/CN=$(hostname -f)"
|
openssl req -x509 -new -out /etc/ssl/certs/services.pem -keyout /etc/ssl/private/services.key -nodes -days 3654 -subj "/C=CZ/CN=$(hostname -f)"
|
||||||
|
chgrp ssl-cert /etc/ssl/private/services.key
|
||||||
chmod 640 /etc/ssl/private/services.key
|
chmod 640 /etc/ssl/private/services.key
|
||||||
|
|
||||||
# Configure nginx
|
# Configure nginx
|
||||||
|
Loading…
Reference in New Issue
Block a user