How to Ignore Certificate Errors With curl: Risks and Alternatives
curl should ignore certificate errors only for short testing, never as a normal production fix. The command is simple: curl -k https://example.test or curl --insecure https://example.test. That flag tells curl to continue even when certificate checks fail, which the curl manual describes as allowing “insecure” SSL connections [source: curl]. The safer path is to fix the certificate chain, trust the correct certificate authority, or pass a known CA file to curl. Read more