From e564d367ade988feda8c1775755c200d5f92fafb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Thu, 1 Feb 2024 03:10:40 +0100 Subject: [PATCH] Add last raw file Do not remove extra certificate anymore --- Acme.pm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Acme.pm b/Acme.pm index a27e385..2360380 100644 --- a/Acme.pm +++ b/Acme.pm @@ -1063,11 +1063,14 @@ sub issue { write_file($file, $content); } - # Remove first multi-line jump - $content =~ s/\n\n/\n/; + # Write to raw cert file + write_file($self->{domain}{cert}.'.raw', $content); + + # Remove multi-line jump + $content =~ s/\n\n/\n/s; # Remove ISRG Root X1 certificate signed by DST Root CA X3 present after second multi-line jump - $content =~ s/\n\n.*//s; + #$content =~ s/\n\n.*//s; # Remove trailing line jump chomp $content; -- 2.41.0