From 3e10d44501fbada0342dce994987c6cf68e6b541 2020-06-29 04:18:22
From: Branko Majic <branko@majic.rs>
Date: 2020-06-29 04:18:22
Subject: [PATCH] Fixed the CRL archiver publisher so that it actually copies the file locally.

---

diff --git a/x509/crlpublisher.sh b/x509/crlpublisher.sh
index f8e222a2a2001af3ea921b3619f79a1fff6e2a87..a52f3265dfeeb689f0d07354ac0f372496d3a93c 100755
--- a/x509/crlpublisher.sh
+++ b/x509/crlpublisher.sh
@@ -231,15 +231,14 @@ function publish_through_archiver() {
         return 1
     fi
 
+    # Get the issuance date/time of the issued CRL.
     crlLastUpdateParsed=$(TZ=UTC date -d "$crlLastUpdate" +%F-%T:%z)
 
-    echo "$crlIssuerDn"
-    echo "$crlNumber"
-    echo "$crlLastUpdate"
-    echo "$crlNextUpdate"
-    echo "$crlLastUpdateParsed"
+    # Set-up the filename.
     filename="${crlIssuerDn}_${crlLastUpdateParsed}_${crlNumber}.$crlFormat"
-    echo "$filename"
+
+    # Copy the file.
+    cp "$crlFile" "$archiveDir/$filename"
 }
 
 # If no arguments were given, just show usage help.