Handle mixed case domains in CSRs (#4685)

Lowercase domains from CSR, just like the domains from the
command line are.

Fixes #4684
This commit is contained in:
Jeff R. Allen
2017-05-19 13:54:00 -07:00
committed by Brad Warren
parent 93bf54fced
commit bbbfc473d3
4 changed files with 11 additions and 11 deletions
+3 -1
View File
@@ -620,7 +620,9 @@ class HelpfulArgumentParser(object):
% parsed_args.csr[0])
parsed_args.actual_csr = (csr, typ)
csr_domains, config_domains = set(domains), set(parsed_args.domains)
csr_domains = set([d.lower() for d in domains])
config_domains = set(parsed_args.domains)
if csr_domains != config_domains:
raise errors.ConfigurationError(
"Inconsistent domain requests:\nFrom the CSR: {0}\nFrom command line/config: {1}"