[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
|
fi
|
||||||
mv $keySubdir/$keyFile $keyDestDir
|
mv $keySubdir/$keyFile $keyDestDir
|
||||||
mv $keySubdir/$keycertFile $keyDestDir
|
mv $keySubdir/$keycertFile $keyDestDir
|
||||||
|
mv $certSubdir/$certFile $certDestDir
|
||||||
fingerprint="$(openssl x509 -in "$certPath" -noout -fingerprint)"
|
fingerprint="$(openssl x509 -in "$certPath" -noout -fingerprint)"
|
||||||
fingerprint=${fingerprint#*=}
|
fingerprint=${fingerprint#*=}
|
||||||
if [ -n "$notifiedUsers" -a -n "$keyId" ]
|
if [ -n "$notifiedUsers" -a -n "$keyId" ]
|
||||||
|
@ -379,7 +380,6 @@ generate_cert ()
|
||||||
$notifyTemplate
|
$notifyTemplate
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
mv $certSubdir/$certFile $certDestDir
|
|
||||||
fi
|
fi
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue