0

The bellow code fails with "certificate verify failed" error. Earlier, it used to work.
Any idea why it fails? (I have certifi==2020.6.20)
import requests

url = 'https://net.cib.hu/ebroker/arfolyamok/cib_alapok_arfolyam/index?defaultLanguage=hungarian'
content = requests.get(url).text
lmocsi
  • 550
  • 2
  • 17
  • did you change network status by any chance? I believe the certificate is referring to ssl which certifies the authenticity of a webpage. If its accessible through http try that instead of https. – M Z Jul 10 '20 at 18:55
  • No, it is only available through https. – lmocsi Jul 10 '20 at 18:58
  • can you access it through browser? – M Z Jul 10 '20 at 18:59
  • Yes, it works through Firefox. – lmocsi Jul 10 '20 at 19:00
  • If the certificate is not trusted, you may be experiencing the same issue as [here](https://stackoverflow.com/a/12864892/6032132) – tetouani63 Jul 10 '20 at 19:02
  • Both Firefox and Opera report the connetion secure, and the certificate verified... – lmocsi Jul 10 '20 at 19:12
  • 1
    According to [SSLLabs](https://www.ssllabs.com/ssltest/analyze.html?d=net.cib.hu), the certificate's chain is incomplete. I found a detailed answer [here](https://stackoverflow.com/a/56633991/6032132) – tetouani63 Jul 10 '20 at 19:23

0 Answers0