install_dehydrated.sh: fix error dreating TLSA 3 0 1 record.

This commit is contained in:
Christoph 2024-10-04 11:22:00 +02:00
parent b7679c9878
commit e3875b2def

View File

@ -2093,7 +2093,7 @@ if [[ -n "\$_successfully_created_hosts" ]] ; then
printf "_%s._tcp.%s. \$ttl_301 IN TLSA 3 0 1 %s\\n" \\ printf "_%s._tcp.%s. \$ttl_301 IN TLSA 3 0 1 %s\\n" \\
\${_tmp_arr[1]} \\ \${_tmp_arr[1]} \\
\${_tmp_arr[0]} \\ \${_tmp_arr[0]} \\
\$(openssl x509 -in ${DH_BASE_DIR}/certs/\${_tmp_arr[0]}/cert.pem -noout -pubkey | \$(openssl x509 -in ${DH_BASE_DIR}/certs/\${_tmp_arr[0]}/cert.pem -outform DER |
openssl dgst -sha256 -binary | openssl dgst -sha256 -binary |
hexdump -ve '/1 "%02x"') hexdump -ve '/1 "%02x"')
) )