aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-05-19 09:31:12 +0100
committerMatthew Wild <mwild1@gmail.com>2015-05-19 09:31:12 +0100
commit527e1e4bad2c8536f9c0b905e77d2679ca9ae9d5 (patch)
tree6225faf7bc524edf57e2118bc8633e07d2b28333 /util
parenta1eac64a926aeeec8babac775aa689dab4a598d3 (diff)
parentbb08d35ca72865e4ba3432a30a6df7e4d9e77c62 (diff)
downloadprosody-527e1e4bad2c8536f9c0b905e77d2679ca9ae9d5.tar.gz
prosody-527e1e4bad2c8536f9c0b905e77d2679ca9ae9d5.zip
Merge 0.10->trunk
Diffstat (limited to 'util')
-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];