blob: c75817efcce2076c778df06beefcad15fd12e871 [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: insecure
4Short: k
5Help: Allow insecure server connections
6Protocols: TLS SFTP SCP
7See-also: proxy-insecure cacert capath
8Category: tls sftp scp
9Example: --insecure $URL
10Added: 7.10
11Multi: boolean
12---
13By default, every secure connection curl makes is verified to be secure before
14the transfer takes place. This option makes curl skip the verification step
15and proceed without checking.
16
17When this option is not used for protocols using TLS, curl verifies the
18server's TLS certificate before it continues: that the certificate contains
19the right name which matches the host name used in the URL and that the
20certificate has been signed by a CA certificate present in the cert store.
21See this online resource for further details:
22 https://curl.se/docs/sslcerts.html
23
24For SFTP and SCP, this option makes curl skip the *known_hosts* verification.
25*known_hosts* is a file normally stored in the user's home directory in the
26".ssh" subdirectory, which contains host names and their public keys.
27
28**WARNING**: using this option makes the transfer insecure.