From a7f72cf6bd251903f0297f39e488fc6ece8b8036 Mon Sep 17 00:00:00 2001 From: Florian Reimair Date: Tue, 31 Mar 2020 17:10:08 +0200 Subject: [PATCH] Set expiry date to +years --- monitor/install_collectd_debian.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor/install_collectd_debian.sh b/monitor/install_collectd_debian.sh index bf8448e5e60..256721e93dc 100755 --- a/monitor/install_collectd_debian.sh +++ b/monitor/install_collectd_debian.sh @@ -40,7 +40,7 @@ done echo "[*] Seeding entropy from /dev/urandom" sudo -H -i -u "${ROOT_USER}" /bin/sh -c "head -1500 /dev/urandom > ${ROOT_HOME}/.rnd" echo "[*] Installing Nginx config" -sudo -H -i -u "${ROOT_USER}" openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/nginx/cert.key -out /etc/nginx/cert.crt -subj="/O=Bisq/OU=Bisq Infrastructure/CN=$onionaddress" +sudo -H -i -u "${ROOT_USER}" openssl req -x509 -nodes -newkey rsa:2048 -days 3000 -keyout /etc/nginx/cert.key -out /etc/nginx/cert.crt -subj="/O=Bisq/OU=Bisq Infrastructure/CN=$onionaddress" curl -s "${BISQ_REPO_URL}/${BISQ_REPO_TAG}/monitor/nginx.conf" > /tmp/nginx.conf sudo -H -i -u "${ROOT_USER}" install -c -o "${ROOT_USER}" -g "${ROOT_GROUP}" -m 644 /tmp/nginx.conf /etc/nginx/nginx.conf