• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: ssl-reqd
5Help: Require SSL/TLS
6Protocols: FTP IMAP POP3 SMTP LDAP
7Added: 7.20.0
8Category: tls
9Multi: boolean
10See-also:
11  - ssl
12  - insecure
13Example:
14  - --ssl-reqd ftp://example.com
15---
16
17# `--ssl-reqd`
18
19Require SSL/TLS for the connection. Terminates the connection if the transfer
20cannot be upgraded to use SSL/TLS.
21
22This option is handled in LDAP (added in 7.81.0). It is fully supported by the
23OpenLDAP backend and rejected by the generic ldap backend if explicit TLS is
24required.
25
26This option is unnecessary if you use a URL scheme that in itself implies
27immediate and implicit use of TLS, like for FTPS, IMAPS, POP3S, SMTPS and
28LDAPS. Such a transfer always fails if the TLS handshake does not work.
29
30This option was formerly known as --ftp-ssl-reqd.
31