xref: /curl/docs/cmdline-opts/cert-type.md (revision e7219c2b)
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: cert-type
5Protocols: TLS
6Arg: <type>
7Help: Certificate type (DER/PEM/ENG/P12)
8Category: tls
9Added: 7.9.3
10Multi: single
11See-also:
12  - cert
13  - key
14  - key-type
15Example:
16  - --cert-type PEM --cert file $URL
17---
18
19# `--cert-type`
20
21Set type of the provided client certificate. PEM, DER, ENG and P12 are
22recognized types.
23
24The default type depends on the TLS backend and is usually PEM, however for
25Secure Transport and Schannel it is P12. If --cert is a pkcs11: URI then ENG is
26the default type.
27