You can upload the syslog client certificates to the Syslog collection of your NDR appliance using the following request:
POST https://<IA_IP_address>/config/v1/certmgmt/collection/syslog/upload
Note
To use this request, you must belong to the sudo group.
Required header:
--user <username>:<password>
Request body (form-data):
{ca: 'TEXT'}
Options
NDR_IP_address—IP address of the NDR appliance running the NDR API.
username—Administrator user name.
password—Administrator password.
Parameters
ca(string)—The name of a certificate you want to upload to the syslog collection.
Example
POST https://<NDR_IP_address>/config/v1/certmgmt/collection/syslog/uploadRequired header:
--user npadmin:hammerhead
Request body:
{
ca :@ca.pem
}Response fields
Response Code—A standard HTTP response code.
Response Message—A standard HTTP response message.
Date—Standard HTML date format.
Example
HTTP/1.1 100 Continue HTTP/1.1 200 OK Date: Tue, 24 Jan 2017 18:38:24 GMT [ "1b7c60e9327d5e67de7f381c1bab873d7494dd0b56cd6230253b18ba3cdd3698", "987ab86dcf7879812e123f12bb8976cc8670a9870d987ee780134b76deadbeef" ]
cURL code sample: uploading client certificate
The code sample was run with cURL 7.57.0.
curl -k --user npadmin:hammerhead https://xxx.xxx.xxx.xxx/config/v1/certmgmt/collection/syslog/upload -X POST -F "ca=@ca.pem"
This cURL sample includes the following options:
-k—This option explicitly allows cURL to perform insecure SSL connections and transfers, which allows you to test your SSL connection without installing a CA certificate.--user npadmin:hammerhead—Replacenpadminwith the user name of the administrator for your NDR appliance. Replacehammerheadwith the administrator password for your NDR appliance.https://xxx.xxx.xxx.xxx/config/v1/certmgmt/collection/syslog/upload—The request URL. Replacexxx.xxx.xxx.xxxwith the IP address of your NDR appliance.-X POST—This option specifies using the POST method.-F "ca=@ca.pem—This option specifies the certificate to be uploaded to the syslog collection. Replaceca.pemwith the name of the certificate you want to upload.
Results
This example uploads ca.pem certificate to the syslog collection.
Similarly, you can upload rslclient-cert.pem certificate by replacing ca.pem with rslclient-cert.pem .