System Administration > Settings > Certificates > CSR

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, if a value greater than 825 days is provided,
it will be set to 825 days.

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/xxxx?action=self_sign "pem_encoded": "-----BEGIN CERTIFICATE----------END CERTIFICATE-----\n"

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", "_last_modified_time": 1413382597133, "_create_time": 1413382597133, "_create_user": "admin", "_last_modified_user": "admin" }

Required Permissions:

crud

Feature:

trust_csrs

Additional Errors: