handle ssl error when uploading/downloading files

For self-signed certs, we just check if the certs has been accepted by
the user before