Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Curl on Windows and SSL

Posted on 2014-08-20
1
Medium Priority
?
972 Views
Last Modified: 2014-08-20
I am trying to get the following to work using curl, but it does not work

C:\curl>curl -H "Content-Type: application/json" -d @input3.txt https://www.goog
le.com
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

Open in new window


I am on a Windows system ysing curl

On another thread, an expert suggested that I download the .pem file and save somewhere and add it to my curl invocation as follows

--cacert path_to_file/cacert.pem

My question:  Where can I download the .pem file, and what is its full name (I am guessing its not cacert.pem, but not really sure)

Thanks
0
Comment
Question by:Anthony Lucia
1 Comment
 
LVL 58

Accepted Solution

by:
Gary earned 2000 total points
ID: 40274479
I gave you the link in other question. Save this file to your pc
http://curl.haxx.se/ca/cacert.pem

Add this to your curl command replacing path_to_file with the path where you saved the above file.
--cacert path_to_file/cacert.pem
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Considering today’s continual security threats, which affect Information technology networks and systems worldwide, it is very important to practice basic security awareness. A normal system user can secure himself or herself by following these simp…
Securing your business data in current era should be your biggest priority. Numerous people are unaware of the fact that insiders commit more than 60 percent of security breaches. You need to figure out the underlying cause and invoke your potential…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question