# HG changeset patch # User Kim Alvefur # Date 1431977525 -7200 # Node ID d2beb98ece2915cf5ec7a709cee5b2daa4fb21af # Parent 06cdd4afaaf97b19ac6768d3db2aaec76b1413e7 util.x509: Tell LuaSec we want UTF-8 data diff -r 06cdd4afaaf9 -r d2beb98ece29 util/x509.lua --- a/util/x509.lua Mon May 18 21:00:41 2015 +0200 +++ b/util/x509.lua Mon May 18 21:32:05 2015 +0200 @@ -148,6 +148,9 @@ 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];