aboutsummaryrefslogtreecommitdiffstats
path: root/lacme
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2017-02-19 13:24:07 +0100
committerGuilhem Moulin <guilhem@fripost.org>2017-02-19 13:25:19 +0100
commitde585094c458a36a387277544bda5f4004bbb03c (patch)
treeec19fee2d163a2e79ddbad3ca5c29bca2bc98523 /lacme
parentbbbd329e9a1274d0a7bfb7b741894f5417b43538 (diff)
new-cert: sort section names if not passed explicitely.
Diffstat (limited to 'lacme')
-rwxr-xr-xlacme2
1 files changed, 1 insertions, 1 deletions
diff --git a/lacme b/lacme
index 8cbed17..f9b3530 100755
--- a/lacme
+++ b/lacme
@@ -598,7 +598,7 @@ elsif ($COMMAND eq 'new-cert') {
my $challenge_dir;
my $rv = 0;
- foreach my $s (@ARGV ? @ARGV : keys %$conf) {
+ foreach my $s (@ARGV ? @ARGV : sort (keys %$conf)) {
my $conf = $conf->{$s} // do {
print STDERR "Warning: No such section $s, skipping\n";
$rv = 1;