NSX-T Data Center REST API

Upload the Certificate PEM File Signed by the CA Associated with a CSR

Uploads the certificate authority (CA)-signed certificate. After you send
the certificate request to the CA of your choice, and the CA sends back the
signed certificate, you can use the upload POST action to upload the signed
certificate. The upload action is similar to the import action, but the
upload action allows you to directly upload the PEM-encoded file (signed
certificate) provided by the CA. After this operation you can delete the CSR.

Request:

Method:
POST
URI Path(s):
/api/v1/trust-management/csrs/<csr-id>?action=upload
Request Headers:
n/a
Query Parameters:
PemFile+
Request Body:
n/a

Example Request:

POST "https://<nsx-mgr>/api/v1/trust-management/csrs/9428509b-badb-495a-8f8d-2b615be5837f?action=upload" (with -H "Content-Type: multipart/form-data" -F file=@signed_cert_file.pem)

Successful Response:

Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
CertificateList+

Example Response:

{ "results" : [ { "pem_encoded" : "-----BEGIN CERTIFICATE-----\n\n-----END CERTIFICATE-----\n", "used_by" : [ ], "resource_type" : "certificate_signed", "id" : "6fc3f3af-8102-4467-97ae-d9aca429f79b", "display_name" : "Upload test", "description" : "", "tags" : [ ], "_create_user" : "admin", "_create_time" : 1634178373915, "_last_modified_user" : "admin", "_last_modified_time" : 1634178373915, "_system_owned" : false, "_protection" : "NOT_PROTECTED", "_revision" : 0 } ] }

Required Permissions:

crud

Feature:

trust_csrs

Additional Errors: