fix IDN conversion failure in generator scripts
This commit is contained in:
parent
418a53cd4f
commit
0046798424
|
@ -48,7 +48,7 @@ for cert_file in ../certs/*; do
|
|||
port=$(expr "$cert_file" : '^../certs\/.*\:\([0-9]*\)\.pem$')
|
||||
|
||||
# Hostname to punycode.
|
||||
host=$(echo "$host" | idn)
|
||||
host=$(echo "$host" | idn --allow-unassigned)
|
||||
|
||||
# File for certificate/public key pinning
|
||||
if [ "$port" = 1965 ]; then
|
||||
|
|
|
@ -44,7 +44,7 @@ for cert_file in ../certs/*; do
|
|||
port=$(expr "$cert_file" : '^../certs\/.*\:\([0-9]*\)\.pem$')
|
||||
|
||||
# Hostname to punycode.
|
||||
host=$(echo "$host" | idn)
|
||||
host=$(echo "$host" | idn --allow-unassigned)
|
||||
|
||||
# Replace dots with slashes.
|
||||
host=$(echo "$host" | tr . /)
|
||||
|
|
|
@ -41,7 +41,7 @@ for cert_file in ../certs/*; do
|
|||
host=$(expr "$cert_file" : '^../certs\/\(.*\)\:[0-9]*\.pem$')
|
||||
|
||||
# Hostname to punycode.
|
||||
host=$(echo "$host" | idn)
|
||||
host=$(echo "$host" | idn --allow-unassigned)
|
||||
|
||||
# Expiry date
|
||||
enddate=$(echo "$cert" | openssl x509 -enddate -noout | cut -d '=' -f 2)
|
||||
|
|
Loading…
Reference in New Issue