Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d26a6e5ec8 |
@@ -54,8 +54,9 @@ if [ -z $SKIP_CERTBOT ]; then
|
||||
fi
|
||||
|
||||
else
|
||||
# Skipping certbot, so remove certificate entries in nginx conf
|
||||
sed --in-place 's/^ssl_certificate/# ssl_certificate/g' %{_sysconfdir}/nginx/conf.d/0_security.conf
|
||||
# Skipping certbot, so create self-signed certificate
|
||||
mkdir --parents /etc/letsencrypt/live/netoik.io
|
||||
openssl req -newkey rsa:4096 -nodes -keyout /etc/letsencrypt/live/netoik.io/privkey.pem -x509 -days 365 -out /etc/letsencrypt/live/netoik.io/fullchain.pem -subj "/C=US/ST=State/L=City/O=Organization/OU=Department/CN=netoik.io"
|
||||
fi
|
||||
|
||||
# Restart services
|
||||
|
||||
Reference in New Issue
Block a user