Description
This function uploads an SSL certificate. When you call this function, the system copies the certificate data to the account's ~/ssl/certs
directory.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
-
SSL::upload_cert
—Error rendering macro 'excerpt-include' : No link could be created for 'UAPI Functions - SSL::upload_cert'.
Note:
Due to the limited field length of HTTP GET method calls, you must use the HTTP POST method. For this reason, you cannot use the WHM API to call this function.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
crt |
string |
Required The certificate data. |
The certificate file contents. Important:
|
Returns
Return |
Type |
Description |
Possible values |
Example |
output |
string |
The hostname for which the certificate is encoded. |
A valid hostname. |
example.com |
result |
Boolean |
Whether the function succeeded. |
|
1 |