aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2020-03-26 18:11:28 -0400
committerJay Satiro <raysatiro@yahoo.com>2020-03-26 18:46:15 -0400
commit0d0537aeae2acdbdb43c6aab834abf84ca7ba247 (patch)
treeccb9c6a055448bb546ae9a02f632afa4581cda57 /docs
parent6d45588ba396ebe663ccd0ba24e3969ad897d0b8 (diff)
SSLCERTS.md: Fix example code for setting CA cert file
Prior to this change the documentation erroneously said use CURLOPT_CAPATH to set a CA cert file. Bug: https://curl.haxx.se/mail/lib-2020-03/0121.html Reported-by: Timothe Litt Closes https://github.com/curl/curl/pull/5151
Diffstat (limited to 'docs')
-rw-r--r--docs/SSLCERTS.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/SSLCERTS.md b/docs/SSLCERTS.md
index 2c5be68e6..fcbc4646e 100644
--- a/docs/SSLCERTS.md
+++ b/docs/SSLCERTS.md
@@ -55,7 +55,7 @@ server, do one of the following:
2. Get a CA certificate that can verify the remote server and use the proper
option to point out this CA cert for verification when connecting. For
- libcurl hackers: `curl_easy_setopt(curl, CURLOPT_CAPATH, capath);`
+ libcurl hackers: `curl_easy_setopt(curl, CURLOPT_CAINFO, cacert);`
With the curl command line tool: --cacert [file]
@@ -104,7 +104,7 @@ server, do one of the following:
the security is no better than the way you obtained the certificate.
4. If you're using the curl command line tool, you can specify your own CA
- cert path by setting the environment variable `CURL_CA_BUNDLE` to the path
+ cert file by setting the environment variable `CURL_CA_BUNDLE` to the path
of your choice.
If you're using the curl command line tool on Windows, curl will search