To generate self-signed certificate, send the following request:
POST https://<IA_IP_address>/config/v1/tlc/nicertificate
Required headers:
Content-Type: multipart/form-data
Options
IA_IP_address—The IP address of the NDR appliance running the NDR API.
Example
POST https://xxx.xxx.xxx.xxx/config/v1/tlc/nicertificate
Required headers:
Content-Type: multipart/form-data
Generate self-signed certificate: Response
HTTP/1.1 [Response Code] [Response Message] Server: [Server]
Response fields
Response message—A standard HTTP response message.
Request successful; Successfully generated self signed certificate and broker keystore.
cURL code sample: Generate self-signed certificate
curl -k -u <username>:<password> -XPOST http://xxx.xxx.xxx.xxx/config/v1/tlc/nicertificate -d '{"password":"xxx","country":"XX","state":"xxx","city":"xx","company":"xxxx","section":"XXX","hostname":"xxx","email":"xx"}'
This cURL sample includes the following options:
-X POST—Specifies using the POST method.-u username:password—Specifies the username and password of the NDR appliance.
http://xxx.xxx.xxx.xxx/config/v1/tlc/nicertificate—The certificate request URL. Replacexxx.xxx.xxx.xxxwith the IP address of your NDR appliance.-d—Specifies the request body.
Results
This example generates self-signed certificate to your NDR appliance.