# HG changeset patch # User Kim Alvefur # Date 1568132233 -7200 # Node ID b2e7b07f8b747161174b0c5a1d2e111b3264d644 # Parent 8e8d3b3a55da3ecad3089b740bdb1b7dd3d0b49e util.x509: Only collect commonNames that pass idna Weeds out "Example Certificate" and the like, which are uninteresting for this function. diff -r 8e8d3b3a55da -r b2e7b07f8b74 util/x509.lua --- a/util/x509.lua Tue Sep 10 18:16:11 2019 +0200 +++ b/util/x509.lua Tue Sep 10 18:17:13 2019 +0200 @@ -238,7 +238,7 @@ local dn = subject[i]; if dn.oid == oid_commonname then local name = nameprep(dn.value); - if name then + if name and idna_to_ascii(name) then names[name] = true; end end