问题原文
原帖链接 · blueFast · CC BY-SA 3.0
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?
社区高分解答
原帖链接 · Brad Parks · CC BY-SA 4.0
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:
$ echo insecure >> ~/.curlrc
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!
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
