[{"label":"Latest (v1.0)","version":"latest"}]
nsx-intelligence-and-application-platform

Generate CSR

Description

Creates a new certificate signing request (CSR). A CSR is encrypted text that contains information about your organization (organization name, country, and so on) 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.

Request

Request

URL

URL


post
https://api_host/napp/api/v1/platform/trust-management/csrs/ca
Copy

Request Body

Request Body

Csr of type(s) application/json Required

A Certificate Signing Request.

{
	"algorithm": "string",
	"display_name": "string",
	"key_size": 0
}
string
algorithm Required

Cryptographic algorithm(asymmetric) used by the public key for data encryption.


string
display_name Required

The certificate signing request name


integer
key_size Required

Size measured in bits of the public key used in a cryptographic algorithm.


#definitions/Principal
subject Required

The certificate owner’s information. (CN, O, OU, C, ST, L)


string
pem_encoded Optional

PEM encoded certificate data.

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns Csr of type(s) application/json
{
	"algorithm": "string",
	"display_name": "string",
	"key_size": 0,
	"pem_encoded": "string"
}
string
algorithm Required

Cryptographic algorithm(asymmetric) used by the public key for data encryption.


string
display_name Required

The certificate signing request name


integer
key_size Required

Size measured in bits of the public key used in a cryptographic algorithm.


#definitions/Principal
subject Required

The certificate owner’s information. (CN, O, OU, C, ST, L)


string
pem_encoded Optional

PEM encoded certificate data.

Errors

Errors

400

Unknown backend error

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"algorithm":"string","display_name":"string","key_size":0,"pem_encoded":"string"}' https://api_host/napp/api/v1/platform/trust-management/csrs/ca


[{"label":"Latest (v1.0)","version":"latest"}]
nsx-intelligence-and-application-platform
Feedback

Was this page helpful?