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) First comment
x509/crlpublisher.sh
Show inline comments
 
@@ -228,21 +228,20 @@ function publish_through_archiver() {
 

	
 
    if ! [[ -d $archiveDir ]]; then
 
        echo "Archiver publisher ($configFile): invalid archive directory - '$archiveDir'" >&2
 
        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.
 
if [[ -z $1 ]]; then
 
    usage
 
    exit 0
0 comments (0 inline, 0 general) First comment
You need to be logged in to comment. Login now