Originally posted by Rajesh Purushothaman
I need some help from the Clovertech Guru's -
This is what I am trying to accomplish.
1. Make a call from within Cloverleaf to a web service first to get the 'Security Token'.
2. Once I get the token, use the token to send data from Cloverleaf to that web service in JSON message format.
I am now trying to get the first step to work. This is the command that I am trying from command line after assigning values to the variables.
curl -v --cacert cacert.pem
POST -H --URL $URL
-H 'Content-Type: application/x-www-form-urlencoded'
-d 'grant_ENGINE=password'
-d 'client_id=$clientID'
-d 'client_secret=$clientSECRET'
-d 'username=$USERNAME'
-d 'password=$PASSWORD'
The vendor web service receives this request but then it fails to process. The error message that is being logged is 'unable to process request from "unsecure channel"'.
I am not supplying any SSL certificate from client side (Cloverleaf).
I am not sure how to generate one.
Has anyone done similar things and if so can you guide me in how to do this? I am planning to read about curl::transfer.
Appreciate any help in advance. Thanks.