summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
72dc900)
Cleanup certificate and not intermediate answer
Version 2.0.2
ACME_PROD_DIR => 'https://acme-v02.api.letsencrypt.org/directory',
# Version
ACME_PROD_DIR => 'https://acme-v02.api.letsencrypt.org/directory',
# Version
# Set content
$content = $res->content;
# 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);
}
# 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);
# Write to cert file
write_file($self->{domain}{cert}, $content);