How to bypass SSL certificate verification in open-uri?

后端 未结 7 1157
無奈伤痛
無奈伤痛 2020-12-02 12:30

I try to access a file with open-uri over an https connection. Unfortunately somethings wrong with the certificate, I get a certificate verify failed error. I can\'

7条回答
  •  抹茶落季
    2020-12-02 12:44

    It's your call, but setting VERIFY_PEER to NONE is basically equivalent to disabling TLS altogether and connecting over plaintext HTTP. It makes man in the middle attacks trivial, and will not pass a PCI audit.

提交回复
热议问题