Fix SSL cert checking when uploading