If you have a certificate and key and want to replace the self-signed certificate on the server you can use the command line