[ssl_mgmt] Install cert before taking its hash

Install the certificate before taking the fingerprint of the installed
certificate for mailing the administrators.
This commit is contained in:
Thomas Preud'homme 2014-09-12 22:04:58 +08:00
parent 87f906c6a7
commit d991b290bf
1 changed files with 1 additions and 1 deletions

View File

@ -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
}