Software / code / prosody
Changeset
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 |
| parents | 6635:ef88a6072228 |
| children | 6638:9d2b56fd6b47 |
| files | prosodyctl |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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