NSX-T Data Center REST API
Generate a new self-signed certificate
Creates a new self-signed certificate. A private key is also created at thesame time. This is convenience call that will generate a CSR and then self-sign it.
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):
              
              
                  
                  /policy/api/v1/infra/csrs?action=self_sign
                  
              
            Request Headers:
                n/a
            Query Parameters:
    n/a
  Request Body:
    TlsCsrWithDaysValid+
  Example Request:
POST https://<policy-mgr>/policy/api/v1/infra/csrs?action=self_sign { "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", "days_valid": 365, }Successful Response:
Response Code:
                201 Created
              Response Headers:
                  
                  Content-type: application/json
                Response Body:
    TlsCertificate+
  