Import Trusted Certificate
Imports an X.509 certificate into the HCX Manager's trust store. The certificate can be provided directly as PEM string, via file upload, or fetched from a URL. Certificate is immediately available for use in SSL/TLS connections.
URL validation blocks loopback, link-local, and HCX Manager's own IP and prevents SSRF attacks by blocking internal endpoints
{
"certificate": "string",
"alias": "string"
}
Certificate imported successfully
{
"success": true,
"completed": true,
"time": 1753094523000,
"version": "1.0",
"data": {
"items": [
{
"subject": "CN=vcenter.example.com, OU=Engineering, O=VMware, C=US",
"issuer": "CN=VMware CA, OU=Engineering, O=VMware, C=US",
"thumbprint": "a1b2c3d4e5f6789012345678901234567890abcd",
"notBefore": "2023-01-01T00:00:00Z",
"notAfter": "2025-12-31T23:59:59Z",
"alias": "vcenter-root-ca"
}
]
}
}
Indicates if the operation was successful
Indicates if the operation completed
Unix timestamp in milliseconds
API version
Protocol version
Response fingerprint
Response data containing items array
Array of error objects
Array of warning objects
Bad request - Invalid certificate or blocked URL
{
"success": true,
"completed": true,
"time": 1753094523000,
"version": "1.0",
"protocol": "string",
"fingerprint": "string",
"data": {
"items": [
{}
]
},
"errors": [
{
"text": "string"
}
],
"warnings": [
{
"text": "string"
}
]
}
Indicates if the operation was successful
Indicates if the operation completed
Unix timestamp in milliseconds
API version
Protocol version
Response fingerprint
Response data containing items array
Array of error objects
Array of warning objects
Internal server error
{
"success": false,
"completed": true,
"time": 1753094523000,
"version": "1.0",
"errors": [
{
"text": "Error in importing the certificate, please verify the certificate again."
}
]
}
Indicates if the operation was successful
Indicates if the operation completed
Unix timestamp in milliseconds
API version
Protocol version
Response fingerprint
Response data containing items array
Array of error objects
Array of warning objects
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/admin/certificates