UAPI accesses the cPanel interface's features. Use this API to access and modify cPanel account data and settings.
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/
https://{host}:{port}/execute/
Request
This function deletes a certificate signing request (CSR).
Note:
- When you call this function, you must include the
idor thefriendly_nameparameter. - To delete a private key, use the UAPI
SSL::delete_keyfunction instead.
Important:
When you disable the Calendars and Contacts, Receive Mail, Web Disk, Webmail, and Web Server roles, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/SSL/delete_csr
- A server running cPanel.
https://cpanel-server.tld:2083/execute/SSL/delete_csr
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/SSL/delete_csr?friendly_name=TestCSR&id=example_com_e095f_0ab2f_ebcbe4a571276f48562241411556647f'{ "apiversion": 3, "func": "delete_csr", "module": "SSL", "result": { "data": [ … ], "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }
Request
This function deletes a private key.
Note:
- When you call this function, you must include the
idor thefriendly_nameparameter. - To delete a certificate signing request (CSR), use the UAPI
SSL::delete_csrfunction instead.
Important:
When you disable the Calendars and Contacts, Receive Mail, Web Disk, Webmail, and Web Server roles, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/SSL/delete_key
- A server running cPanel.
https://cpanel-server.tld:2083/execute/SSL/delete_key
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/SSL/delete_key?friendly_name=TestKey&id=example_com_e095f_0ab2f_ebcbe4a571276f48562241411556647f'{ "apiversion": 3, "func": "delete_key", "module": "SSL", "result": { "data": [ … ], "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }
Request
This function generates a self-signed SSL certificate.
Important:
When you disable the Calendars and Contacts, Receive Mail, Web Disk, Webmail, and Web Server roles, the system disables this function.
A comma-separated list of domains for which to generate the certificate.
The key's ID.
The certificate's Organization Name.
The two-letter state or locality abbreviation.
An email address to associate with the certificate.
A friendly name for the new certificate.
This parameter defaults to the domain's name for which you generated the certificate.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/SSL/generate_cert
- A server running cPanel.
https://cpanel-server.tld:2083/execute/SSL/generate_cert
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/SSL/generate_cert?countryName=US&domains=string&key_id=example_com_cb497_a394d_1397249671_d1272da8f13a1fd837493a5ad1f0a0f3&localityName=Houston&organizationName=Organization&stateOrProvinceName=TX&emailAddress=username%40example.com&friendly_name=TestCert&organizationalUnitName=Department'{ "apiversion": 3, "func": "generate_cert", "module": "SSL", "result": { "data": { … }, "errors": null, "messages": [ … ], "metadata": {}, "status": 1, "warnings": null } }