Script uploading new web interface SSL file

Is there a way to upload a new SSL cert/key for the web interface via cli?

I am doing this for my other servers by using scp and then ssh to execute a command to refresh the certs.

In-Control is not an option for this particular use case.

Thanks!