From e7603ae75637b6f1cbfcae8252b59f7f680ddac8 Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Fri, 11 Apr 2025 12:49:10 +0330 Subject: [PATCH] Remove "SHA256 Fingerprint=" prefix from certificate SHA256 output --- core/scripts/hysteria2/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/scripts/hysteria2/install.sh b/core/scripts/hysteria2/install.sh index 88462de..38af5b5 100644 --- a/core/scripts/hysteria2/install.sh +++ b/core/scripts/hysteria2/install.sh @@ -39,7 +39,7 @@ install_hysteria() { # print('sha256/' + base64_encoded) # EOF - sha256=$(openssl x509 -noout -fingerprint -sha256 -inform pem -in ca.crt) + sha256=$(openssl x509 -noout -fingerprint -sha256 -inform pem -in ca.crt | sed 's/.*=//;s///g') if [[ $port =~ ^[0-9]+$ ]] && (( port >= 1 && port <= 65535 )); then if ss -tuln | grep -q ":$port\b"; then