2022-06-14 06:12:03 +08:00
|
|
|
c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
|
|
SPDX-License-Identifier: curl
|
2016-11-16 06:44:58 +08:00
|
|
|
Long: insecure
|
|
|
|
Short: k
|
2021-11-25 20:17:49 +08:00
|
|
|
Help: Allow insecure server connections
|
|
|
|
Protocols: TLS SFTP SCP
|
2021-11-15 22:07:01 +08:00
|
|
|
See-also: proxy-insecure cacert capath
|
2021-11-25 20:17:49 +08:00
|
|
|
Category: tls sftp scp
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: --insecure $URL
|
2021-09-28 17:50:07 +08:00
|
|
|
Added: 7.10
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: boolean
|
2016-11-16 06:44:58 +08:00
|
|
|
---
|
2021-11-25 20:17:49 +08:00
|
|
|
By default, every secure connection curl makes is verified to be secure before
|
|
|
|
the transfer takes place. This option makes curl skip the verification step
|
|
|
|
and proceed without checking.
|
2016-11-16 06:44:58 +08:00
|
|
|
|
2021-11-25 20:17:49 +08:00
|
|
|
When this option is not used for protocols using TLS, curl verifies the
|
|
|
|
server's TLS certificate before it continues: that the certificate contains
|
|
|
|
the right name which matches the host name used in the URL and that the
|
|
|
|
certificate has been signed by a CA certificate present in the cert store.
|
2016-11-16 06:44:58 +08:00
|
|
|
See this online resource for further details:
|
2020-11-04 21:02:01 +08:00
|
|
|
https://curl.se/docs/sslcerts.html
|
2021-08-31 22:37:14 +08:00
|
|
|
|
2021-11-25 20:17:49 +08:00
|
|
|
For SFTP and SCP, this option makes curl skip the *known_hosts* verification.
|
|
|
|
*known_hosts* is a file normally stored in the user's home directory in the
|
2022-08-23 19:42:49 +08:00
|
|
|
".ssh" subdirectory, which contains host names and their public keys.
|
2021-11-25 20:17:49 +08:00
|
|
|
|
2021-11-15 22:07:01 +08:00
|
|
|
**WARNING**: using this option makes the transfer insecure.
|
2022-12-22 06:36:57 +08:00
|
|
|
|
|
|
|
When curl uses secure protocols it trusts responses and allows for example
|
|
|
|
HSTS and Alt-Svc information to be stored and used subsequently. Using
|
|
|
|
--insecure can make curl trust and use such information from malicious
|
|
|
|
servers.
|