2023-01-02 20:51:48 +08:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-06-14 06:12:03 +08:00
|
|
|
SPDX-License-Identifier: curl
|
2016-11-16 06:44:58 +08:00
|
|
|
Long: capath
|
|
|
|
Arg: <dir>
|
|
|
|
Help: CA directory to verify peer against
|
|
|
|
Protocols: TLS
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: tls
|
2021-11-15 22:58:20 +08:00
|
|
|
See-also: cacert insecure
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: --capath /local/directory $URL
|
2021-09-28 17:50:07 +08:00
|
|
|
Added: 7.9.8
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: single
|
2016-11-16 06:44:58 +08:00
|
|
|
---
|
|
|
|
Tells curl to use the specified certificate directory to verify the
|
|
|
|
peer. Multiple paths can be provided by separating them with ":" (e.g.
|
2022-08-23 19:42:49 +08:00
|
|
|
"path1:path2:path3"). The certificates must be in PEM format, and if curl is
|
2016-11-16 06:44:58 +08:00
|
|
|
built against OpenSSL, the directory must have been processed using the
|
|
|
|
c_rehash utility supplied with OpenSSL. Using --capath can allow
|
|
|
|
OpenSSL-powered curl to make SSL-connections much more efficiently than using
|
|
|
|
--cacert if the --cacert file contains many CA certificates.
|
|
|
|
|
2022-10-18 16:39:43 +08:00
|
|
|
If this option is set, the default capath value will be ignored.
|