diff util/x509.lua @ 6722:d022cb4486bd

Merge 0.10->trunk
author Matthew Wild <mwild1@gmail.com>
date Tue, 19 May 2015 09:31:12 +0100
parents d2beb98ece29
children 5de6b93d0190
line wrap: on
line diff
--- a/util/x509.lua	Fri May 15 15:33:31 2015 +0200
+++ b/util/x509.lua	Tue May 19 09:31:12 2015 +0100
@@ -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];