To reset server certificate, send the following request:
PUT https://<IA_IP_address>/config/v1/tlc/tlccertificate -F
Required headers:
Content-Type: multipart/form-data
Example
PUT https://xxx.xxx.xxx.xxx/config/v1/tlc/tlccertificate -F
cURL code sample: reset server certificate
If you do not want to reconfigure ip and port:
curl -k -u <username>:<password> -XPUT https://xxx.xxx.xxx.xxx/config/v1/tlc/tlccertificate -F "serverFile=@xxx.crt" -H "Content-Type: multipart/form-data"
If you want to configure ip and port:
curl -k -u <username>:<password> -XPUT https://xxx.xxx.xxx.xxx/config/v1/tlc/tlccertificate?ip=xx.xx.xx.xx&port=xxxxx -F "serverFile=@xxx.crt" -H "Content-Type: multipart/form-data"
where:
query parameter= ip=<xx.xx.xx.xx>;port=<xxxxx>
This cURL sample includes the following options:
-X PUT—Specifies using the PUT method.-u username:password—Specifies the username and password of the NDR appliance.
http://xxx.xxx.xxx.xxx/config/v1/tlc/tlccertificate—Configure TLC certificate. Replacexxx.xxx.xxx.xxxwith the IP address of your NDR appliance.-F—Specifies the file containing the base 64 server certificate. Example: @xxx.crtIp—Specifies the IP address of the NDR appliance running the NDR API.port—Specifies the port number of the NDR appliance running the NDR API.
Response fields
Response message—A standard HTTP response message.
Request successful;
If you do not want to reconfigure ip and port: Successfully reuploaded tlc server certificate to NDR.
If you want to configure ip and port: Successfully reuploaded tlc server certificate to NDR and reconfigured ip port.
Results
This example shows the reuploading of TLC server certificate and reconfiguring IP and port in your NDR appliance.