Remove "SHA256 Fingerprint=" prefix from certificate SHA256 output

This commit is contained in:
Whispering Wind
2025-04-11 12:49:10 +03:30
committed by GitHub
parent 060b1b77f3
commit e7603ae756

View File

@ -39,7 +39,7 @@ install_hysteria() {
# print('sha256/' + base64_encoded) # print('sha256/' + base64_encoded)
# EOF # 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 [[ $port =~ ^[0-9]+$ ]] && (( port >= 1 && port <= 65535 )); then
if ss -tuln | grep -q ":$port\b"; then if ss -tuln | grep -q ":$port\b"; then