insecure.d 1.1 KB

123456789101112131415161718192021222324252627
  1. c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
  2. SPDX-License-Identifier: curl
  3. Long: insecure
  4. Short: k
  5. Help: Allow insecure server connections
  6. Protocols: TLS SFTP SCP
  7. See-also: proxy-insecure cacert capath
  8. Category: tls sftp scp
  9. Example: --insecure $URL
  10. Added: 7.10
  11. ---
  12. By default, every secure connection curl makes is verified to be secure before
  13. the transfer takes place. This option makes curl skip the verification step
  14. and proceed without checking.
  15. When this option is not used for protocols using TLS, curl verifies the
  16. server's TLS certificate before it continues: that the certificate contains
  17. the right name which matches the host name used in the URL and that the
  18. certificate has been signed by a CA certificate present in the cert store.
  19. See this online resource for further details:
  20. https://curl.se/docs/sslcerts.html
  21. For SFTP and SCP, this option makes curl skip the *known_hosts* verification.
  22. *known_hosts* is a file normally stored in the user's home directory in the
  23. \&.ssh subdirectory, which contains host names and their public keys.
  24. **WARNING**: using this option makes the transfer insecure.