I have a command line application that is using the libcurl-4
dll's, and currently I can get everything to work by placing my CA certs in my working directory and passing their names to the CUTLOPT_CAINFO
and CURLOPT_SSLCERT
with ./
prefix to their names.
But, what I am working on is getting cURL to not use what is in the current directory and instead use the certs that are stored in my computers system store.
From reading cURL's documentation I understand that if you configure it without giving a specified default ca-bundle
or ca-path
that ti will "auto-detect a setting".
And that the CURLOPT_CAINFO
is by default set to "built-in system specific"
So can anyone help me understand:
if nothing is specified at configure time with curl, is the default path it detects the system store? Or does curl use its own path for a system store?
what value do you give curl_easy_setopt(m_curlHandle, CURLOPT_CAINFO, *<value> )
to make CURLOPT_CAINFO
go use its default value?
Any help is appreciated as i am still learning how this all works.
Thank you.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…