From d991b290bfeb1a65971cd06adf741880b9505a46 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Fri, 12 Sep 2014 22:04:58 +0800 Subject: [PATCH] [ssl_mgmt] Install cert before taking its hash Install the certificate before taking the fingerprint of the installed certificate for mailing the administrators. --- ssl_mgmt/ssl_mgmt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl_mgmt/ssl_mgmt b/ssl_mgmt/ssl_mgmt index 082bb3d..aeba039 100755 --- a/ssl_mgmt/ssl_mgmt +++ b/ssl_mgmt/ssl_mgmt @@ -359,6 +359,7 @@ generate_cert () fi mv $keySubdir/$keyFile $keyDestDir mv $keySubdir/$keycertFile $keyDestDir + mv $certSubdir/$certFile $certDestDir fingerprint="$(openssl x509 -in "$certPath" -noout -fingerprint)" fingerprint=${fingerprint#*=} if [ -n "$notifiedUsers" -a -n "$keyId" ] @@ -379,7 +380,6 @@ generate_cert () $notifyTemplate EOF fi - mv $certSubdir/$certFile $certDestDir fi return 0 }