aboutsummaryrefslogtreecommitdiffstats
path: root/util/x509.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-05-18 21:32:05 +0200
committerKim Alvefur <zash@zash.se>2015-05-18 21:32:05 +0200
commit73b562630cacf2976ff4977a9ae017e93638b555 (patch)
treec5823c3291f8204c34505c8df08a1a6516fbf193 /util/x509.lua
parent333d5b1a8a6da9050d3e0796fc7aa240cf424a73 (diff)
downloadprosody-73b562630cacf2976ff4977a9ae017e93638b555.tar.gz
prosody-73b562630cacf2976ff4977a9ae017e93638b555.zip
util.x509: Tell LuaSec we want UTF-8 data
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];