• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: capath
5Arg: <dir>
6Help: CA directory to verify peer against
7Protocols: TLS
8Category: tls
9Added: 7.9.8
10Multi: single
11See-also:
12  - cacert
13  - insecure
14Example:
15  - --capath /local/directory $URL
16---
17
18# `--capath`
19
20Use the specified certificate directory to verify the peer. Multiple paths can
21be provided by separated with colon (`:`) (e.g. `path1:path2:path3`). The
22certificates must be in PEM format, and if curl is built against OpenSSL, the
23directory must have been processed using the c_rehash utility supplied with
24OpenSSL. Using --capath can allow OpenSSL-powered curl to make SSL-connections
25much more efficiently than using --cacert if the --cacert file contains many
26CA certificates.
27
28If this option is set, the default capath value is ignored.
29