From 899ca78972777ca4bf8de6ed29e9e21525ba5088 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 15 Nov 2021 18:21:10 +0100 Subject: [PATCH] Remove "ISRG Root X1" certificate signed by expired certificate "DST Root CA X3" Cleanup certificate and not intermediate answer Version 2.0.2 --- Acme.pm | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Acme.pm b/Acme.pm index 161fbc9..e8679c1 100644 --- a/Acme.pm +++ b/Acme.pm @@ -97,7 +97,7 @@ use constant { ACME_PROD_DIR => 'https://acme-v02.api.letsencrypt.org/directory', # Version - VERSION => '2.0.0', + VERSION => '2.0.2', # Timeout TIMEOUT => 300 @@ -1059,16 +1059,19 @@ sub issue { # Set content $content = $res->content; - # Remove multi-line jump - $content =~ s/\n\n/\n/; - - # Remove trailing line jump - chomp $content; - # Write to file write_file($file, $content); } + # Remove first multi-line jump + $content =~ s/\n\n/\n/; + + # Remove ISRG Root X1 certificate signed by DST Root CA X3 present after second multi-line jump + $content =~ s/\n\n.*//s; + + # Remove trailing line jump + chomp $content; + # Write to cert file write_file($self->{domain}{cert}, $content); -- 2.41.0