To upload TLC server certificate, send the following request:
POST https://<IA_IP_address>/config/v1/tlc/tlccertificate
Prerequisite
Create a crt file <file_name.crt> in the transfer folder.
Copy the tlc server base 64 encoded string and paste it in the file <file_name.crt>. You can obtain the base 64 encoded string by logging into the TLC server and navigating to the following pathTLC menu > Server Settings > Identity Replication Certificate >Base 64.
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/tlccertificate
Required headers:
Content-Type: multipart/form-data
Upload TLC server certificate: Response
HTTP/1.1 [Response Code] [Response Message] Server: [Server]
Response fields
Response message—A standard HTTP response message.
Request successful; Successfully uploaded tlc server certificate to NI and generated broker truststore.
cURL code sample: Upload TLC server certificate
curl -k -u <username>:<password> -XPOST http://xxx.xxx.xxx.xxx/config/v1/tlc/tlccertificate -F "serverFile=@<file_name.crt>" -H "Content-Type: multipart/form-data"
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/tlccertificate—The certificate request URL. Replacexxx.xxx.xxx.xxxwith the IP address of your NDR appliance.-F "serverFile=@<file_name.crt>"—Specifies the file containing the base 64 server certificate.-H "Content-Type: multipart/form-data"—Specifies the header of the request API.
Results
This example uploads a tlc server certificate to your NDR appliance.