# HG changeset patch # User Kim Alvefur # Date 1430164336 -7200 # Node ID ecc039288edc23d9eeae7bbf8feb2d5b3ba8340b # Parent ef88a6072228050052597d5283cbc4b9026e762c prosodyctl: check certs: Correctly check that certificates are valid for s2s diff -r ef88a6072228 -r ecc039288edc prosodyctl --- a/prosodyctl Sun Apr 26 23:25:47 2015 +0200 +++ b/prosodyctl Mon Apr 27 21:52:16 2015 +0200 @@ -1146,7 +1146,7 @@ end if (not (config.get(host, "anonymous_login") or config.get(host, "authentication") == "anonymous")) - and not x509_verify_identity(host, "_xmpp-client", cert) then + and not x509_verify_identity(host, "_xmpp-server", cert) then print(" Not vaild for server-to-server connections to "..host..".") cert_ok = false end