Security
A company runs several Linux servers that call each other's HTTPS APIs. To avoid buying certificates, each server uses its own self-signed certificate, and client scripts run curl with the -k option. A security reviewer objects. What is the primary risk of this setup?
Show the answer
Correct answerC. The curl client cannot verify the identity of the server it connects to, so a spoofed server could receive credentials and data
Using -k disables certificate verification, and a self-signed certificate has no trusted CA vouching for identity, so the client cannot detect an impostor. The connection is still encrypted; -k skips validation rather than downgrading to HTTP.