XK0-005 · Question #10260
An administrator needs to download a monitoring agent called node_exporter.0.16.0- Linux.amd64 from the internal web page https://company.local/downloads/. The server does not have graphical…
The correct answer is B. curl -k https://company.local/downloads/node_exporter.0.16.0-. To download a file from an HTTPS URL without certificate validation issues, the curl -k command is used.
Question
Options
How the community answered
(56 responses)- A4% (2)
- B73% (41)
- C7% (4)
- D16% (9)
Why each option
To download a file from an HTTPS URL without certificate validation issues, the `curl -k` command is used.
`curl -K` (or `--config`) specifies a configuration file to read `curl` options from, which is not related to bypassing SSL certificate validation.
The `curl -k` option, short for `--insecure`, allows `curl` to perform SSL/TLS connections even if the server's certificate is self-signed, expired, or otherwise untrusted. This is a common requirement when accessing internal web pages that might not have publicly recognized certificates, enabling the download of the specified file.
`curl --auth` is not a standard `curl` option for authentication; options like `-u` or `--user` are used for specific authentication schemes.
`curl -A` (or `--user-agent`) sets the User-Agent header for the HTTP request, which does not affect certificate validation.
Concept tested: `curl` insecure HTTPS download
Source: https://curl.se/docs/manpage.html#-k
Topics
Community Discussion
No community discussion yet for this question.