]> Raphaël G. Git Repositories - acme/commitdiff
Add last raw file master 2.0.5
authorRaphaël Gertz <git@rapsys.eu>
Thu, 1 Feb 2024 02:10:40 +0000 (03:10 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 1 Feb 2024 02:10:40 +0000 (03:10 +0100)
Do not remove extra certificate anymore

Acme.pm

diff --git a/Acme.pm b/Acme.pm
index a27e3852f94a8db79434475d3d2e88a2e31157bc..236038027c9274f8ff7b5cbede8f54bb9d7e9336 100644 (file)
--- 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;