From 3dbd3ec0661a092d57c3e7061fe107c37350a459 Mon Sep 17 00:00:00 2001 From: Lizsvr Date: Tue, 31 Jan 2023 02:09:06 +0700 Subject: [PATCH] Update lestencrypt --- backup/set-br.sh | 3 +++ ssh/addhost.sh | 6 +++--- ssh/certsslh.sh | 8 ++++---- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/backup/set-br.sh b/backup/set-br.sh index db2ef0a..cc4bf7c 100644 --- a/backup/set-br.sh +++ b/backup/set-br.sh @@ -52,8 +52,11 @@ from lizsvrbckup@gmail.com password yourpaswordapp logfile ~/.msmtp.log EOF + chown -R www-data:www-data /etc/msmtprc + cd /usr/bin + #wget -O autobackup "https://${akbarvpn}/autobackup.sh" wget -O addemail "https://${akbarvpn}/addemail.sh" wget -O changesend "https://${akbarvpn}/changesend.sh" diff --git a/ssh/addhost.sh b/ssh/addhost.sh index b4b1837..f8fdeb8 100755 --- a/ssh/addhost.sh +++ b/ssh/addhost.sh @@ -66,11 +66,11 @@ chronyc tracking -v mkdir -p /etc/xray sudo lsof -t -i tcp:80 -s tcp:listen | sudo xargs kill cd /root/ -wget https://raw.githubusercontent.com/acmesh-official/acme.sh/master/acme.sh +curl https://get.acme.sh | sh bash acme.sh --install -rm acme.sh cd .acme.sh +bash acme.sh --set-default-ca --server letsencrypt bash acme.sh --register-account -m senowahyu62@gmail.com -bash acme.sh --issue --standalone -d $domain --force +bash acme.sh --issue --standalone -d $domain--force bash acme.sh --installcert -d $domain --fullchainpath /etc/xray/xray.crt --keypath /etc/xray/xray.key sleep 3 \ No newline at end of file diff --git a/ssh/certsslh.sh b/ssh/certsslh.sh index 135bee9..100d7f2 100755 --- a/ssh/certsslh.sh +++ b/ssh/certsslh.sh @@ -31,12 +31,12 @@ domain=$IP systemctl enable xray.service sudo lsof -t -i tcp:80 -s tcp:listen | sudo xargs kill cd /root/ -wget -O acme.sh https://raw.githubusercontent.com/acmesh-official/acme.sh/master/acme.sh +curl https://get.acme.sh | sh bash acme.sh --install -rm acme.sh cd .acme.sh -echo "starting...., Port 80 Akan di Hentikan Saat Proses install Cert" +bash acme.sh --set-default-ca --server letsencrypt bash acme.sh --register-account -m senowahyu62@gmail.com -bash acme.sh --issue --standalone -d $domain --force +bash acme.sh --issue --standalone -d $domain--force bash acme.sh --installcert -d $domain --fullchainpath /etc/xray/xray.crt --keypath /etc/xray/xray.key +sleep 3 restart