From 73b562630cacf2976ff4977a9ae017e93638b555 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 18 May 2015 21:32:05 +0200 Subject: util.x509: Tell LuaSec we want UTF-8 data --- util/x509.lua | 3 +++ 1 file changed, 3 insertions(+) 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]; -- cgit v1.2.3