prosodyctl: check certs: Correctly check that certificates are valid for s2s
authorKim Alvefur <zash@zash.se>
Mon, 27 Apr 2015 21:52:16 +0200
changeset 6640 ecc039288edc
parent 6638 ef88a6072228
child 6641 9d2b56fd6b47
prosodyctl: check certs: Correctly check that certificates are valid for s2s
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