update-ca-certificates &&
if type c_rehash &>/dev/null; then
  message "${MESSAGE_COLOR}Updating hash links for openssl.$DEFAULT_COLOR"
  c_rehash
fi &&

local BAD_CERTS=n
for C in $(find -L $INSTALL_ROOT/etc/ssl/certs/ -type l) ; do
		message "${PROBLEM_COLOR}Broken symlink for a certificate at $C${DEFAULT_COLOR}"
		BAD_CERTS=y
done &&

if [[ "$BAD_CERTS" == "y" ]]; then
    message "${PROBLEM_COLOR}You MUST remove the above broken symlinks" &&
    message "Otherwise SSL validation that use the directory may fail!${DEFAULT_COLOR}"
fi
