#!/usr/bin/env perl
use strict;
use warnings;
use Getopt::Long;
use IO::File;
use JSON::MaybeXS;
use Log::Log4perl;
use Log::Log4perl::Level;
use Module::Load;
use Encode 'decode';
use Digest::SHA 'sh
}->("Could not read the file with '$type'.", 'FILE_READ') unless $opt->{$type};
}
my $j = JSON->new->canonical()->allow_nonref();
eval {
$opt->{$type} = $j->decode($opt->{$type});
not decode '$type'. Please make sure you are providing a valid JSON document and {} are in place." . ($opt->{'debug'} ? $@ : ''), 'JSON_DECODE') : 0;
}
sub _read {
my $file = shift;
return u
mmand line, you could also give a name of a file containing valid JSON to read them from.
B<le.pl ... --complete-params complete.json>
Crypt::LE::Challenge:: and Crypt::LE::Complete:: namespaces ar
tails() methods, which
will be set with some values on error.
=cut
use Crypt::OpenSSL::RSA;
use JSON::MaybeXS;
use HTTP::Tiny;
use IO::File;
use Digest::SHA qw<sha256 hmac_sha256>;
use MIME::Base64
eysize = 4096;
our $keycurve = 'prime256v1';
our $headers = { 'Content-type' => 'application/jose+json' };
our $default_ca = 'letsencrypt.org';
our $cas = {
'letsencrypt.org' => {