Mercurial > prosody-hg
diff util/prosodyctl/check.lua @ 14228:84a72e9cb610
util.prosodyctl.check: Print expected TLSA records in consistent format
Same as util.dns now.
Question is if this is easy to copy-paste into DNS editors.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 12 Jun 2026 23:09:09 +0200 |
| parents | 59c50c76860b |
| children |
line wrap: on
line diff
--- a/util/prosodyctl/check.lua Fri Jun 12 23:08:25 2026 +0200 +++ b/util/prosodyctl/check.lua Fri Jun 12 23:09:09 2026 +0200 @@ -1350,9 +1350,9 @@ end if use_dane then if cert.pubkey then - print(" DANE: TLSA 3 1 1 "..sha256(pem2der(cert:pubkey()), true)) + print(" DANE: TLSA DANE-EE(3) SPKI(1) SHA2-256(1) "..sha256(pem2der(cert:pubkey()), true)) elseif cert.pem then - print(" DANE: TLSA 3 0 1 "..sha256(pem2der(cert:pem()), true)) + print(" DANE: TLSA DANE-EE(3) Cert(0) SHA2-256(1) "..sha256(pem2der(cert:pem()), true)) end end end
