.pdf)
WHM Plugins
installssl function from within your custom script:
/xml-api/installssl function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/xml-api/installssl
installssl function from within your custom script:
/json-api/installssl function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/json-api/installssl
installssl function takes the following required variables: installssl function. installssl function.
1 — success.
0 — failure.
https://example.com:2087/xml-api/installssl?user=username&domain=example.com&cert=certificate_data&key=key_data
&cab=certificate_authority_bundle&ip=192.168.0.1 in WebHost Manager will produce output similar to:
<installssl>
<rawout>Certificate verification passed<br /> <br />
The Certificate for the domain example.com was installed on the IP 127.0.0.1.
</html><br><b>Finished SSL Install Process for example.com
(www.example.com).</b></rawout>
<status>1</status>
<statusmsg>Certificate successfully installed
Finished SSL Install Process for example.com (www.example.com).</statusmsg>
</installssl>
https://example.com:2087/json-api/installssl?user=username&domain=example.com&cert=certificate_data&key=key_data
&cab=certificate_authority_bundle&ip=192.168.0.1 in WebHost Manager will produce output similar to:
{
"result":[
{
"status":1,
"statusmsg":"Certificate successfully installed
Finished SSL Install Process for example.com (www.example.com).",
"rawout":"Certificate verification passed<br /> <br />
The Certificate for the domain example.com was installed on the IP 127.0.0.1.
</html><br><b>Finished SSL Install Process for example.com
(www.example.com).</b>"
}
]
}