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/
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/SSL/find_certificates_for_key
- A server running cPanel.
https://cpanel-server.tld:2083/execute/SSL/find_certificates_for_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/find_certificates_for_key?friendly_name=TestKey&id=example_com_cb497_a394d_1397249671_d1272da8f13a1fd837493a5ad1f0a0f3'{ "apiversion": 3, "func": "find_certificates_for_key", "module": "SSL", "result": { "data": [ … ], "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/SSL/find_csrs_for_key
- A server running cPanel.
https://cpanel-server.tld:2083/execute/SSL/find_csrs_for_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/find_csrs_for_key?friendly_name=TestKey&id=example_com_cb497_a394d_1397249671_d1272da8f13a1fd837493a5ad1f0a0f3'{ "apiversion": 3, "func": "find_csrs_for_key", "module": "SSL", "result": { "data": [ … ], "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }
Request
This function retrieves a certificate's Certificate Authority (CA) bundle and hostname.
Important:
When you disable the Calendars and Contacts, Receive Mail, Web Disk, Webmail, and Web Server roles, the system disables this function.
The certificate's text.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/SSL/get_cabundle
- A server running cPanel.
https://cpanel-server.tld:2083/execute/SSL/get_cabundle
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-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Ib3DQEBBQUA%5Cr%5CnA4IBAQCHRXIs53opzKM2rM8Qe8lcw524WK6hqy2EWrZHp78N7rU7%2F6DQ%2FI3hv3Wh%5Cr%5CncDDIO04I2%2FXhe88MLBaLoM367Ya%2Bvy7CaLr14aLi%2FSfQszMA0ALBvMao%2BFis0iVw%5Cr%5CnFYq%2FNLgSXw%2BfgnpFskt8v8iQZ%2B4Kaal8U8e9sVgu8m0RgO7rzym1eRiIKpsKd1rh%5Cr%5Cn%2FSD7LbSN7M7TRL3QqF7ltw9sQhAAsQcRaBBF21pdWrqhiGZ%2BEioo3hhgwNavH2ag%5Cr%5Cnqz78ddHwrFpHFwrEeUk1OfpPb76MYIce7xIy%2F4oQNdg6fOq4l%2FFrajBv%2BWkzDVPa%5Cr%5CnKm6r7YmwfLN%2FYMZBHXSR58oOGP9W%5Cr%5Cn-----END+CERTIFICATE-----'{ "apiversion": 3, "func": "get_cabundle", "module": "SSL", "result": { "data": { … }, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }