Enable SSL from command line
is it possible to enable a SSL certificate for a domain in cpanel using command line script? For example, if I execute like below
addsslcertificate domain.name cert.crt cert.key cabundle.crt
it will configure the certificate for the domain. Is there any existing scripts?
-
I think I figured it out.. seems possible using whm api function to cretate a php script to do that 0 -
I'd take a look at the following; Wildcard SSL Installation Script - The cPanel Admin It's a script that enables a wildcard SSL in bulk on all subdomains. I'm sure you could modify it to fit. 0 -
Hello :) You could use the SSL functions with UAPI: https://api.docs.cpanel.net/cpanel/introduction
Thank you.
0
Please sign in to leave a comment.
Comments
3 comments