Fortinet white logo
Fortinet white logo

Rest API

7.4.0

Post /settings/security/certificate-server/csr/generate

Post /settings/security/certificate-server/csr/generate

Description

Generates a Certificate Signing Request for the upload target.

Request Headers

Key

Value

Type

Description

Authorization Bearer <Authorization Token> String Authorization credential generated by FortiNAC
Content-Type (option 1) application/json String

Content-Type (option 2)

application/xml

Sample Request

Request URL

POST https://10.106.94.152:8443/api/v2/settings/security/certificate-server/csr/generate

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

{

"keyLength": 0,

"countryName": "string",

"state": "string",

"city": "string",

"orgName": "string",

"ou": "string",

"cn": "string",

"sans": [

"string"

],

"selfSigned": true,

"certType": "string",

"newTargetAlias": "string"

}

Sample Response

{

"status": "success",

"errorMessage": null,

"result": [],

"restartRequired": true

}

Post /settings/security/certificate-server/csr/generate

Post /settings/security/certificate-server/csr/generate

Description

Generates a Certificate Signing Request for the upload target.

Request Headers

Key

Value

Type

Description

Authorization Bearer <Authorization Token> String Authorization credential generated by FortiNAC
Content-Type (option 1) application/json String

Content-Type (option 2)

application/xml

Sample Request

Request URL

POST https://10.106.94.152:8443/api/v2/settings/security/certificate-server/csr/generate

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

{

"keyLength": 0,

"countryName": "string",

"state": "string",

"city": "string",

"orgName": "string",

"ou": "string",

"cn": "string",

"sans": [

"string"

],

"selfSigned": true,

"certType": "string",

"newTargetAlias": "string"

}

Sample Response

{

"status": "success",

"errorMessage": null,

"result": [],

"restartRequired": true

}