I am developing and I need to access https://localhost
. I know the certificate will not match. I just want curl to ignore that. Currently it gives me the following error message:
curl: (51) SSL peer certificate or SSH remote key was not OK
Is it possible to tell curl to perform the access anyway?
Yeah, you can do that. From
curl --help
orman curl
:curl -k
orcurl --insecure
does NOT fix this particular error condition:If you truly want to disable
curl
SSL verification, by default, for ALL use cases, you can do as suggested in this Unix stack exchange answer:Now should you do this? No, as this is avoiding security checks you should have in place... but if you really really want to do this, caveat emptor!