Setting Up Secure cURL Execution Example
The cis_server.pem is a certificate which is exported from <TDV_install_dir>conf\server\security\cis_server_keystore.jks.
To troubleshoot secure cURL execution
1. If you run a curl command similar to:
curl -X GET -u admin:admin "https://localhost:9502/rest/userProfiles" - -cacert cis_server.pem
You will get output similar to:
curl: (51) SSL: certificate subject name 'cis_server' does not match target host name 'localhost'
2. Make your host name match the certificate, then you can run the cURL command without errors.
For example, update your /etc/hosts file as follows:
127.0.0.1 cis_server
cURL command:
curl -X GET -u admin:admin "https://cis_server:9502/rest/userProfiles" --cacert cis_server.pem