mirror of
https://github.com/certbot/certbot.git
synced 2026-06-09 00:32:12 -04:00
Merge pull request #2809 from letsencrypt/domain-ordering
Preserve domain ordering in CSR
This commit is contained in:
commit
eb56c166d7
2 changed files with 5 additions and 3 deletions
|
|
@ -245,8 +245,9 @@ class Client(object):
|
|||
domains,
|
||||
self.config.allow_subset_of_names)
|
||||
|
||||
domains = [a.body.identifier.value.encode('ascii')
|
||||
for a in authzr]
|
||||
auth_domains = set(a.body.identifier.value.encode('ascii')
|
||||
for a in authzr)
|
||||
domains = [d for d in domains if d in auth_domains]
|
||||
|
||||
# Create CSR from names
|
||||
key = crypto_util.init_save_key(
|
||||
|
|
|
|||
|
|
@ -201,7 +201,8 @@ class ClientTest(unittest.TestCase):
|
|||
|
||||
authzr = []
|
||||
|
||||
for domain in domains:
|
||||
# domain ordering should not be affected by authorization order
|
||||
for domain in reversed(domains):
|
||||
authzr.append(
|
||||
mock.MagicMock(
|
||||
body=mock.MagicMock(
|
||||
|
|
|
|||
Loading…
Reference in a new issue