clone upload_server_cert.sh to work with files

Helpful when bulk uploading certificates.
A command-line parameter with the localhost default would be nice.