mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 00:35:50 +02:00
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:
committed by
Brad Warren
parent
93bf54fced
commit
bbbfc473d3
+3
-1
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user