Better handling of cert errors.