fix IDN conversion failure in generator scripts

This commit is contained in:
nervuri 2021-06-04 15:05:37 +00:00
parent 418a53cd4f
commit 0046798424
Signed by: nervuri
GPG Key ID: C4769EEA7BA61672
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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 . /)

View File

@ -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)