aboutsummaryrefslogtreecommitdiffstats
path: root/util/x509.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-05-19 16:33:47 +0200
committerKim Alvefur <zash@zash.se>2015-05-19 16:33:47 +0200
commit98d695f3a199cdf07d26f9c0ae7d23a56da157a1 (patch)
tree14a722959d1179338adec58efd9e5d7fcfa58ada /util/x509.lua
parent879862c536a5fba488307eb9e8a2f4f6523dbf09 (diff)
parent9ef666506252bd82ae729d0a69235f4c9ea818f2 (diff)
downloadprosody-98d695f3a199cdf07d26f9c0ae7d23a56da157a1.tar.gz
prosody-98d695f3a199cdf07d26f9c0ae7d23a56da157a1.zip
Merge 0.10->trunk
Diffstat (limited to 'util/x509.lua')
-rw-r--r--util/x509.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/x509.lua b/util/x509.lua
index 5e1b49e5..bf8d3906 100644
--- a/util/x509.lua
+++ b/util/x509.lua
@@ -148,6 +148,9 @@ local function compare_srvname(host, service, asserted_names)
end
function verify_identity(host, service, cert)
+ if cert.setencode then
+ cert:setencode("utf8");
+ end
local ext = cert:extensions()
if ext[oid_subjectaltname] then
local sans = ext[oid_subjectaltname];