blob: 552c05a3cfb8e92619dce0bf45cc5f61af909cec [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
2SPDX-License-Identifier: curl
3Long: capath
4Arg: <dir>
5Help: CA directory to verify peer against
6Protocols: TLS
7Category: tls
8See-also: cacert insecure
9Example: --capath /local/directory $URL
10Added: 7.9.8
11Multi: single
12---
13Tells curl to use the specified certificate directory to verify the
14peer. Multiple paths can be provided by separating them with ":" (e.g.
15"path1:path2:path3"). The certificates must be in PEM format, and if curl is
16built against OpenSSL, the directory must have been processed using the
17c_rehash utility supplied with OpenSSL. Using --capath can allow
18OpenSSL-powered curl to make SSL-connections much more efficiently than using
19--cacert if the --cacert file contains many CA certificates.
20
21If this option is set, the default capath value will be ignored.