Comparison

util/prosodyctl/check.lua @ 13811:83478fc0806b 13.0

prosodyctl check certs: Use correct hostname in warning message about HTTPS
author Matthew Wild <mwild1@gmail.com>
date Wed, 02 Apr 2025 17:27:39 +0100
parent 13778:b6d0f1d79b60
child 13830:145b71d1283c
comparison
equal deleted inserted replaced
13809:2cfb6625b6d2 13811:83478fc0806b
1311 if api(host):get_option_string("http_external_url") then 1311 if api(host):get_option_string("http_external_url") then
1312 -- Assumed behind a reverse proxy 1312 -- Assumed behind a reverse proxy
1313 http_loaded = false; 1313 http_loaded = false;
1314 end 1314 end
1315 if http_loaded and not x509_verify_identity(http_host, nil, cert) then 1315 if http_loaded and not x509_verify_identity(http_host, nil, cert) then
1316 print(" Not valid for HTTPS connections to "..host..".") 1316 print(" Not valid for HTTPS connections to "..http_host..".")
1317 cert_ok = false 1317 cert_ok = false
1318 end 1318 end
1319 if use_dane then 1319 if use_dane then
1320 if cert.pubkey then 1320 if cert.pubkey then
1321 print(" DANE: TLSA 3 1 1 "..sha256(pem2der(cert:pubkey()), true)) 1321 print(" DANE: TLSA 3 1 1 "..sha256(pem2der(cert:pubkey()), true))