]>
Raphaƫl G. Git Repositories - acme/blob - gencert
11 use POSIX
qw(EXIT_SUCCESS EXIT_FAILURE);
19 # Strip and enable prod
20 @ARGV = map { if ($_ eq '-p') { $prod = 1; (); } else { $_; } } @ARGV;
23 if (scalar(@ARGV) < 2) {
24 print "Usage: $0 user\@example.com www.example.com [example.com] [...]\n";
29 my $acme = acme-
>new(shift @ARGV, @ARGV);
31 # Prepare environement
32 $acme->prepare($prod);
34 # Generate required keys
41 $acme->directory($prod);
47 $acme->authorize($prod);