Skip to content
This repository was archived by the owner on Aug 22, 2021. It is now read-only.

Commit ce98e0a

Browse files
committed
fix_cert no ecdsa
1 parent 462addc commit ce98e0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/xwall.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ init_cert() {
234234
fi
235235
certbot register -m "$RANDOM@$1" --agree-tos --no-eff-email -n
236236
# TODO: ecdsa cert will be available from cetbot 1.10+ with args "--key-type ecdsa"
237-
certbot certonly --webroot -w "/var/www/acme" -d $1 -n -q
237+
certbot certonly --webroot -w "/var/www/acme" -d $1 -n
238238
(crontab -l 2>/dev/null; echo "8 7 */4 * * certbot renew -n -q --post-hook \"systemctl restart xray\" >/dev/null 2>&1") | crontab -
239239
}
240240

@@ -558,8 +558,8 @@ fix_cert() {
558558
local cf_node="$(read_json /usr/local/etc/xray/05_inbounds_ss.json '.inbounds[0].tag')"
559559
local old_domain="$(read_json /usr/local/etc/xray/05_inbounds_vless.json '.inbounds[0].tag')"
560560

561-
certbot delete --cert-name ${old_domain} | writeLog >> $log_path
562-
certbot certonly --webroot -w "/var/www/acme" -d ${V2_DOMAIN} --key-type ecdsa -n | writeLog >> $log_path
561+
certbot delete --cert-name ${old_domain} -n 2>&1 | writeLog >> $log_path
562+
certbot certonly --webroot -w "/var/www/acme" -d ${V2_DOMAIN} -n 2>&1 | writeLog >> $log_path
563563

564564
set_xray "${uuid}" "${path}" "${V2_DOMAIN}" "${cf_node}"
565565
set_trojan "${uuid}" "${path}tj" "${V2_DOMAIN}"

0 commit comments

Comments
 (0)