cURL SSL Certificate working on Linux but not on Windows -


i using curl request url using https protocol. retrieved ca cert file owners of webservice. .crt file works in rhel5 not in windows, using same command. below commands using:

rhel5 without specifying --cacert

bash-3.2$ curl -i "https://<url>" curl: (60) ssl certificate problem, verify ca cert ok. details: error:14090086:ssl routines:ssl3_get_server_certificate:certificate verify failed more details here: http://curl.haxx.se/docs/sslcerts.html  curl performs ssl certificate verification default, using "bundle"  of certificate authority (ca) public keys (ca certs). default  bundle named curl-ca-bundle.crt; can specify alternate file  using --cacert option. if https server uses certificate signed ca represented in  bundle, certificate verification failed due  problem certificate (it might expired, or name might  not match domain name in url). if you'd turn off curl's verification of certificate, use  -k (or --insecure) option. 

rhel5 specifying --cacert

bash-3.2$ curl -i "https://<url>" --cacert ca-bundle.crt  http/1.1 200 ok transfer-encoding: chunked cache-control: no-cache content-type: text/html pragma: no-cache date: thu, 02 jun 2016 03:06:32 gmt  <data> 

windows without specifying --cacert

curl -i "https://<url>" curl: (35) schannel: next initializesecuritycontext failed: sec_e_untrusted_root  (0x80090325) - certificate chain issued authority not trusted. 

windows specifying --cacert

curl -i "https://<url>" --cacert c:\<path>\ca-bundle.crt curl: (35) schannel: next initializesecuritycontext failed: sec_e_untrusted_root  (0x80090325) - certificate chain issued authority not trusted. 

i using same .crt file. suggestions on might issue?


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo