Generate CSR
All the listed privileges are required -
Privileges | Description |
---|---|
MANAGE_CERTIFICATES | Caller should have permission to this privilege, to perform this operation. |
{
"certificate_usage": "MACHINE",
"dns_subject_alternative_names": [
"server.example.com",
"www.vmware.com"
],
"subject_name": "CN=Horizon-server.example.local, OU=VMware Horizon View default certificate, O=VMware, S=California, C=CALIFORNIA"
}
Indicates the type of certificate based on usage.
- MACHINE: vdm certificates
- CLUSTER: vdm.ec certificates
Subject alternative DNS names. If the 'certificateUsage' is set to 'CLUSTER', the cluster GUID can be provided in this field. If the cluster GUID is not provided in 'dnsSubjectAlternativeNames', the CSR generation process will automatically append it, along with the value provided in dnsSubjectAlternativeNames
Subject name. If the 'certificateUsage' is set to 'CLUSTER', the cluster GUID can be provided in this field. If the cluster GUID is not provided in the subject name, the CSR generation process will automatically append the cluster GUID to the 'dnsSubjectAlternativeNames' field, ensuring that the generated CSR is specific to the cluster and does not conflict with other clusters.
OK
{
"csr": "MIIC8DCCAdgCAQAwfDF6MHgGA1UEAxNxqRkDxR4gWqAoe26YU1S4...XRdFpQPhpkDRQ13yeO+oq"
}
Generated CSR.
Bad Request
User is not authenticated
Access to the resource is forbidden