The mv operation following the CRL creation isn't useful as there is no temp file to move. Instead, create the temp file during CRL creation, preventing a potential overwrite of a previous, valid, CRL. Thanks go to matteo.guglielmi@epfl.ch for this patch (via email). Signed-off-by: Eric F Crist <ecrist@secure-computing.net>