From 2041f36d3583fd9681afba994549fea1f9385756 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 24 Feb 2016 01:38:56 +0100 Subject: [PATCH] Retain order of domains This ensures that the first domain specified on the command line will be the domain that winds up in the CN field. Otherwise, users have no way of controlling this. Fixes: kuba/simp_le#72 Signed-off-by: Jason A. Donenfeld --- simp_le.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simp_le.py b/simp_le.py index 671c702..7973555 100755 --- a/simp_le.py +++ b/simp_le.py @@ -1270,7 +1270,7 @@ def new_data(args, existing): client = registered_client(args, existing.account_key) - authorizations = dict( + authorizations = collections.OrderedDict( (vhost.name, client.request_domain_challenges( vhost.name, new_authz_uri=client.directory.new_authz)) for vhost in args.vhosts