NSX-T Data Center REST API

Generate a New Certificate Signing Request with Extensions (Deprecated)

Creates a new certificate signing request (CSR) with selected extensions.
A CSR is encrypted text that contains information about your organization
(organization name, country, and so on), additional attributes as
extensions, and your Web server's public key, which is a public certificate
the is generated on the server that can be used to forward this request
to a certificate authority (CA). A private key is also usually created at
the same time as the CSR.
Deprecated: Deprecated in favor of POST /trust-management/csrs.

Request:

Method:
POST
URI Path(s):
/api/v1/trust-management/csrs-extended
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
Csr+

Example Request:

{ "subject": { "attributes": [ {"key":"CN","value":"Jane"}, {"key":"O","value":"VMware"}, {"key":"OU","value":"NSBU"}, {"key":"C","value":"US"}, {"key":"ST","value":"CA"}, {"key":"L","value":"PA"} ] }, "key_size": "2048", "algorithm": "RSA", "extensions": { "subject_alt_names": { "dns_names": [ "www.vmware.com", "*.vmware.com" ] } } }

Successful Response:

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

Example Response:

{ "id": "f1a858e1-fe70-41d0-a53b-32c43cec280f", "resource_type": "csr", "pem_encoded": "-----BEGIN CERTIFICATE REQUEST----------END CERTIFICATE REQUEST-----\n", "key_size": 2048, "subject": { "attributes": [ { "value": "Jane", "key": "CN" }, { "value": "VMware", "key": "O" }, { "value": "NSBU", "key": "OU" }, { "value": "US", "key": "C" }, { "value": "CA", "key": "ST" }, { "value": "PA", "key": "L" } ] }, "algorithm": "RSA", "extensions": { "subject_alt_names": { "dns_names": [ "www.vmware.com", "*.vmware.com" ] } }, "_last_modified_time": 1413371717767, "_create_time": 1413371717767, "_create_user": "admin", "_last_modified_user": "admin" }

Required Permissions:

crud

Feature:

trust_csrs

Additional Errors: