NSX-T Data Center REST API

Self-Sign the CSR

Self-signs the previously generated CSR. This action is similar to the
import certificate action, but instead of using a public certificate signed
by a CA, the self_sign POST action uses a certificate that is signed with
NSX's own private key.
For validity of non-CA certificates, if a value greater than 825 days is
provided, it will be set to 825 days. No limit is set for CA certificates.

Request:

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

Example Request:

POST https://<nsx-mgr>/api/v1/trust-management/csrs/f1a858e1-fe70-41d0-a53b-32c43cec280f?action=self_sign&days_valid=100

Successful Response:

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

Example Response:

{ "id": "1b522350-832b-464b-9295-dff599dd5594", "resource_type": "certificate_self_signed", "pem_encoded": "-----BEGIN CERTIFICATE----------END CERTIFICATE-----\n", "has_private_key": true, "used_by": [], "_system_owned": false, "_create_user": "admin", "_create_time": 1630444964349, "_last_modified_user": "admin", "_last_modified_time": 1630444964349, "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

crud

Feature:

trust_csrs

Additional Errors: