<urlopen error [Errno 1] _ssl.c:510: error:14077417:SSL

前端 未结 1 2062
甜味超标
甜味超标 2021-01-24 02:37

Does anyone know why I am getting this error?

SSLError: [Errno 1] _ssl.c:510: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1

I get th

1条回答
  •  说谎
    说谎 (楼主)
    2021-01-24 03:07

    The site is hosted by Cloudflare Free SSL and requires support for Server Name Indication (SNI). SNI is support with Python 2.7 only since version 2.7.9. I guess that you are using an older version.

    verify=False (which is usually a bad idea anyway) will not help here because without SNI the handshake will fail because the server does not know which certificate is requested and thus will not sent any certificate but instead an alert.

    0 讨论(0)
提交回复
热议问题