Diff

prosodyctl @ 6637:ecc039288edc

prosodyctl: check certs: Correctly check that certificates are valid for s2s
author Kim Alvefur <zash@zash.se>
date Mon, 27 Apr 2015 21:52:16 +0200
parent 6612:6cc48b51d699
child 6711:76683a3f3d75
line wrap: on
line diff
--- 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