aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-04-27 21:52:16 +0200
committerKim Alvefur <zash@zash.se>2015-04-27 21:52:16 +0200
commitb1400f3ea378e17d12fcd3dcad4c70ad5f8ec96f (patch)
tree03805b17b5e4392395033493f06688e3994f6e85 /prosodyctl
parent36352ec3c11bcdbc04b7b61d851135da9fa3ba34 (diff)
downloadprosody-b1400f3ea378e17d12fcd3dcad4c70ad5f8ec96f.tar.gz
prosody-b1400f3ea378e17d12fcd3dcad4c70ad5f8ec96f.zip
prosodyctl: check certs: Correctly check that certificates are valid for s2s
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/prosodyctl b/prosodyctl
index e8fca0ce..ef436106 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -1146,7 +1146,7 @@ function commands.check(arg)
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