Skip to content

Commit

Permalink
Let's Encrypt API v1.0 EOL
Browse files Browse the repository at this point in the history
  • Loading branch information
do-know committed May 27, 2021
1 parent 4927039 commit 29d363a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,5 +1,8 @@
Revision history for Crypt-LE

0.38 27 May 2021
- Let's Encrypt API v1.0 deprecation (API v1.0 is still supported for custom servers and other providers).

0.37 21 November 2020
- Alternative certificates support.

Expand Down
10 changes: 3 additions & 7 deletions lib/Crypt/LE.pm
Expand Up @@ -4,15 +4,15 @@ use 5.006;
use strict;
use warnings;

our $VERSION = '0.37';
our $VERSION = '0.38';

=head1 NAME
Crypt::LE - Let's Encrypt API interfacing module and client.
=head1 VERSION
Version 0.37
Version 0.38
=head1 SYNOPSIS
Expand Down Expand Up @@ -321,11 +321,7 @@ sub new {
$self->{dir} = "https://$self->{dir}" unless $self->{dir}=~m~^https?://~i;
}
unless ($self->{server}) {
if ($self->{version} > 1) {
$self->{server} = $self->{live} ? 'acme-v02.api.letsencrypt.org' : 'acme-staging-v02.api.letsencrypt.org';
} else {
$self->{server} = $self->{live} ? 'acme-v01.api.letsencrypt.org' : 'acme-staging.api.letsencrypt.org';
}
$self->{server} = $self->{live} ? 'acme-v02.api.letsencrypt.org' : 'acme-staging-v02.api.letsencrypt.org';
}
# Init logger
$self->{logger} = $params{logger} if ($params{logger} and blessed $params{logger});
Expand Down
2 changes: 1 addition & 1 deletion lib/Crypt/LE/Challenge/Simple.pm
Expand Up @@ -4,7 +4,7 @@ use warnings;
use Digest::SHA 'sha256';
use MIME::Base64 'encode_base64url';

our $VERSION = '0.37';
our $VERSION = '0.38';

=head1 NAME
Expand Down
2 changes: 1 addition & 1 deletion lib/Crypt/LE/Complete/Simple.pm
Expand Up @@ -3,7 +3,7 @@ use Data::Dumper;
use strict;
use warnings;

our $VERSION = '0.37';
our $VERSION = '0.38';

=head1 NAME
Expand Down
2 changes: 1 addition & 1 deletion script/le.pl
Expand Up @@ -13,7 +13,7 @@
use Crypt::LE ':errors', ':keys';
use utf8;

my $VERSION = '0.37';
my $VERSION = '0.38';

exit main();

Expand Down

0 comments on commit 29d363a

Please sign in to comment.