Changeset - 3e10d44501fb
[Not reviewed]
0 1 0
Branko Majic (branko) - 4 years ago 2020-06-29 04:18:22
branko@majic.rs
Fixed the CRL archiver publisher so that it actually copies the file locally.
1 file changed with 5 insertions and 6 deletions:
0 comments (0 inline, 0 general)
x509/crlpublisher.sh
Show inline comments
 
@@ -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.
0 comments (0 inline, 0 general)