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
commitcc380360ef8163b0922b2e31eced37ce9b64c45e (patch)
tree14a722959d1179338adec58efd9e5d7fcfa58ada /util/x509.lua
parenta1eac64a926aeeec8babac775aa689dab4a598d3 (diff)
parente909a53de56e66db08941f06f796b1bedda95a1f (diff)
downloadprosody-cc380360ef8163b0922b2e31eced37ce9b64c45e.tar.gz
prosody-cc380360ef8163b0922b2e31eced37ce9b64c45e.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];