![cpanel api cpanel api](https://manage.accuwebhosting.com/kb-images/manage-api-tokens/manage-token.png)
If multiple certificate chains are offered by the CA, prefer the one which builds a path to an issuer with this Common Name.Ī dry run will use the Let’s Encrypt staging server to issue a test certificate, and will then discard it without installing it. You MUST use dns-01 if any of your DNS identifiers are wildcards.
#Cpanel api full
The full list of DNS identifiers that should be present on the final certificate, including the virtual host.Įither http-01 or dns-01. The cPanel virtual host (primary, addon or subdomain) to which this certificate should be installed This endpoint does not accept a request body. Provides a list of virtual hosts that have Let’s Encrypt certificates configured in the user’s account, along with certificate details. Keep reading to see example requests and responses for each of these endpoints.
![cpanel api cpanel api](https://comunitateawordpress.club/wp-content/uploads/2021/07/API-Tokens-Cum-se-gestioneaza-in-interfata-cPanel.png)
Unshares a certificate from a specified target virtual host. Shares a certificate from a specified source virtual host to a specified target virtual host. Without re-issuing the certificate, reinstalls the respective Let’s Encrypt SSL certificate to the specified virtual host. Unconfigures and uninstalls the installed Let’s Encrypt SSL certificate from the specified virtual host. Issues and installs a Let’s Encrypt certificate to the specified virtual host, with the specified DNS identifiers on the certificate. This should be passed as the api_function query parameter in the URL. This should be passed as the api_version query parameter in the URL. There is only a single API version at present: 1.
#Cpanel api code
cPanel API 2 calls that use cPanel tags vary widely in code syntax and in their output. We strongly recommend that you only use the LiveAPI system to call the cPanel APIs. POST requests) MUST carry the Content-Type: application/json header. In cPanel & WHM version 11.30 and later, cPanel tags are deprecated.
![cpanel api cpanel api](https://blog.cpanel.com/wp-content/uploads/2016/04/toolssmaller.jpg)
Mandatory HeadersĪll API requests MUST carry the Accept: application/json header.Īll API requests that come with a request body (i.e. The API is accessed by the following URI schema: This API can be issued to list, issue, remove, map and unmap SSL certificates managed by the FleetSSL cPanel plugin. Since 0.15.0, FleetSSL cPanel provides a versioned HTTP JSON API that may be used by non-privileged (non-root) cPanel users.