X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=util%2Fx509.lua;h=bf8d390661da35459434b16cee2b063b7849d8eb;hb=c9492b4832d02487e200126d7caea403bc5e06fd;hp=5e1b49e501d3945fcce38593227b62649703d531;hpb=384d0d3383d3ddb9dc8c024118b706c4053a1760;p=prosody.git 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];