.pdf)
WHM Plugins
generatessl function from within your custom script:
/xml-api/generatessl 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/generatessl
generatessl function from within your custom script:
/json-api/generatessl 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/generatessl
generatessl function takes the following required variables as input. generatessl function. generatessl request. 1 — success.
0 — failure.
https://example.com:2087/xml-api/generatessl?xemail=owner@example.com&host=example.com
&country=US&state=TX&city=Houston&co=Domain%20LLC&cod=Web&pass=password&email=admin@example.com in WebHost Manager will produce output similar to:
<generatessl>
<results>
<key>
-----BEGIN RSA PRIVATE KEY-----
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z
2A04vg7axd93FBUEMXqJCgb/cSV88Gu
.............
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z
2A04vg7axd93FBUEMXqJCgb/cSV88Gu
-----END RSA PRIVATE KEY-----
</key>
<args>
<city>Houston</city>
<co>Domain LLC</co>
<cod>Web</cod>
<country>US</country>
<email>admin@example.com</email>
<host>example.com</host>
<keysize>1024</keysize>
<pass>password</pass>
<state>TX</state>
<xemail>owner@domain.com</xemail>
</args>
<cert>
-----BEGIN CERTIFICATE-----
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z
2A04vg7axd93FBUEMXqJCgb/cSV88Gu
.............
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z
2A04vg7axd93FBUEMXqJCgb/cSV88Gu
-----END CERTIFICATE-----
</cert>
<certfile>/usr/share/ssl/certs/example.com.crt</certfile>
<csr>
-----BEGIN CERTIFICATE REQUEST-----
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z
2A04vg7axd93FBUEMXqJCgb/cSV88Gu
.............
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z
2A04vg7axd93FBUEMXqJCgb/cSV88Gu
-----END CERTIFICATE REQUEST-----
</csr>
<csrfile>/usr/share/ssl/certs/example.com.csr</csrfile>
<email_message>CSR email sent to test@example.com</email_message>
<email_status>1</email_status>
<fglob>DUMMY</fglob>
<file_test>DUMMY</file_test>
<includes />
<keyfile>/usr/share/ssl/private/example.com.key</keyfile>
<message>Key, Certificate, and CSR generated OK</message>
<sender>admin</sender>
<sender_host>host.example.com</sender_host>
<status>1</status>
<statusmsg>Key, Certificate, and CSR generated OK</statusmsg>
<uniq>DUMMY</uniq>
<wildcard_safe>DUMMY</wildcard_safe>
</results>
</generatessl>
https://example.com:2087/json-api/generatessl?xemail=owner@example.com
&host=example.com&country=US&state=TX&city=Houston&co=Domain%20LLC
&cod=Web&pass=password&email=admin@example.com in WebHost Manager will produce output similar to:
{
"results":{
"cert":"-----BEGIN CERTIFICATE-----
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z
2A04vg7axd93FBUEMXqJCgb/cSV88Gu
.............
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z
2A04vg7axd93FBUEMXqJCgb/cSV88Gu
-----END CERTIFICATE-----\n",
"wildcard_safe":"DUMMY",
"file_test":"DUMMY",
"status":1,
"csrfile":"/etc/ssl/certs/example.com.csr",
"args":{
"keysize":1024,
"state":"TX",
"country":"US",
"xemail":"owner@example.com",
"host":"example.com",
"cod":"Web",
"city":"Houston",
"pass":"password",
"co":"Domain LLC",
"email":"admin@example.com"
},
"email_message":"CSR email sent to owner@example.com",
"csr":"-----BEGIN CERTIFICATE REQUEST-----
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z
2A04vg7axd93FBUEMXqJCgb/cSV88Gu
.............
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z
2A04vg7axd93FBUEMXqJCgb/cSV88Gu,
\n-----END CERTIFICATE REQUEST-----\n",
"key":"-----BEGIN RSA PRIVATE KEY-----
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z
2A04vg7axd93FBUEMXqJCgb/cSV88Gu
.............
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z
2A04vg7axd93FBUEMXqJCgb/cSV88Gu
-----END RSA PRIVATE KEY-----\n",
"fglob":"DUMMY",
"uniq":"DUMMY",
"keyfile":"/etc/ssl/private/example.com.key",
"includes":{
},
"message":"Key, Certificate, and CSR generated OK",
"statusmsg":"Key, Certificate, and CSR generated OK",
"certfile":"/etc/ssl/certs/example.com.crt",
"sender_host":"host.example.com",
"email_status":1,
"sender":"admin"
}
}