Fix SSL cert checking when uploading

It works.