.pdf)
WHM Plugins
fetchsslinfo function from within your custom script:
/xml-api/fetchsslinfo 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/fetchsslinfo
fetchsslinfo function from within your custom script:
/json-api/fetchsslinfo 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/fetchsslinfo
fetchsslinfo function takes the following variables as input. You must specify one of these variables: fetchsslinfo function. fetchsslinfo request. 1 — success.
0 — failure.
https://example.com:2087/xml-api/fetchsslinfo?domain=example.com in WebHost Manager will produce output similar to the following:
<fetchsslinfo>
<sslinfo>
<key>-----BEGIN RSA PRIVATE KEY-----
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z
2A04vg7axd93FBUEMXqJCgb/cSV88Gu
.............
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z
2A04vg7axd93FBUEMXqJCgb/cSV88Gu
-----END RSA PRIVATE KEY-----
</key>
<cab>-----BEGIN CERTIFICATE-----
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z2
A04vg7axd93FBUEMXqJCgb/cSV88Gu
.......
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z2
A04vg7axd93FBUEMXqJCgb/cSV88Gu
-----END CERTIFICATE-----
</cab>
<crt>-----BEGIN CERTIFICATE-----
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z2
A04vg7axd93FBUEMXqJCgb/cSV88Gu
........
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z2
A04vg7axd93FBUEMXqJCgb/cSV88Gu
-----END CERTIFICATE-----
</crt>
<domain>example.com</domain>
<ip>127.0.0.1</ip>
<status>1</status>
<statusmsg>ok</statusmsg>
<user>joe</user>
</sslinfo>
</fetchsslinfo>
https://example.com:2087/json-api/fetchsslinfo?domain=example.com in WebHost Manager will produce output similar to the following:
{
"sslinfo":[
{
"ip":"127.0.0.1",
"status":1,
"statusmsg":"ok",
"crt":"-----BEGIN CERTIFICATE-----
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z
2A04vg7axd93FBUEMXqJCgb/cSV88Gu
.............
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z
2A04vg7axd93FBUEMXqJCgb/cSV88Gu\n
-----END CERTIFICATE-----\n",
"domain":"example.com",
"user":"joe",
"key":"-----BEGIN RSA PRIVATE KEY-----
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z
2A04vg7axd93FBUEMXqJCgb/cSV88Gu
.............
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z
2A04vg7axd93FBUEMXqJCgb/cSV88Gu\n
-----END RSA PRIVATE KEY-----\n",
"cab":"-----BEGIN CERTIFICATE-----
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z2
A04vg7axd93FBUEMXqJCgb/cSV88Gu
.......
gCJZqVg1ozhK1LZanRtlDm2EFA1xOjs5Z2
A04vg7axd93FBUEMXqJCgb/cSV88Gu
-----END CERTIFICATE-----\n"
}
]
}