diff options
author | Kim Alvefur <zash@zash.se> | 2019-09-10 18:17:13 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-09-10 18:17:13 +0200 |
commit | 1219da203e46b757ca1fb824b264d3ab726df056 (patch) | |
tree | 8b40e302983b87bf51834427e573c64e51fe1d56 /util/x509.lua | |
parent | 9ea6b422a3568aefec377a30c321096fb5604be9 (diff) | |
download | prosody-1219da203e46b757ca1fb824b264d3ab726df056.tar.gz prosody-1219da203e46b757ca1fb824b264d3ab726df056.zip |
util.x509: Only collect commonNames that pass idna
Weeds out "Example Certificate" and the like, which are uninteresting
for this function.
Diffstat (limited to 'util/x509.lua')
-rw-r--r-- | util/x509.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/x509.lua b/util/x509.lua index c4001ecb..82f8285d 100644 --- a/util/x509.lua +++ b/util/x509.lua @@ -238,7 +238,7 @@ local function get_identities(cert) --> set of names 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 |