[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:
parent
87f906c6a7
commit
d991b290bf
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue