How to use datameer REST API curl command?
Hi there,
I am new to Datameer and I am trying to execute a REST API curl command to get "ExportJob" details by executing the below command,
curl -u jkris03:xxxx -X GET 'https://xxx.com:8443/rest/export-job/100'.
I am getting error like below
curl: (60) Peer certificate cannot be authenticated with known CA certificates
More details here: http://curl.haxx.se/docs/sslcerts.html
Also, If i give my password, it displays in PlainText, so is there a way where i can give my password which is not readable.
Thanks,
-
Official comment
Since your environment is SSL secured, you will need to do one of two things:
1. get the CA certificate and use the --cacert parameter on the curl command to specify your certificate.
2. specify --insecure on the curl command so that the certificate isn't validated.
You can find more information about both of these options in the link noted in your error message: https://curl.haxx.se/docs/sslcerts.html
As to your second question relating to password visibility, unfortunately there isn't a way to hide your password. It's just the nature of using cURL.
Comment actions
Please sign in to leave a comment.
Comments
3 comments