clone upload_server_cert.sh to work with files

Helpful when bulk uploading certificates.
Nit: rather than an environment variable this could be a function parameter. Saves confusing global state tweaks.
It's not "real" code, so you don't have to fix.