Python запрашивает модуль как сканер много ошибок ssl - PullRequest
0 голосов
/ 14 апреля 2020

Я пишу сканер, используя python модуль запросов, но много много ошибок ssl при сканировании дикого списка

def getStatus(ourl):
  try:
    res = requests.get('https://' + ourl, verify=False, timeout=2)
    return res, ourl
  except Exception as e:
    print(e)
    return "error", ourl

Ошибка Many Many

HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')",),))('Connection aborted.', BadStatusLine('No status line received - the server has closed the connection',))
HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')",),))
HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError("read error: Error([('SSL routines', 'ssl3_read_bytes', 'tlsv13 alert certificate required')],)",),))
HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_read_bytes', 'sslv3 alert handshake failure')],)",),))
HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')",),))
HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),))
HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_read_bytes', 'sslv3 alert handshake failure')],)",),))
HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_read_bytes', 'tlsv1 alert internal error')],)",),))
HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_record', 'wrong version number')],)",),))('Connection aborted.', BadStatusLine('No status line received - the server has closed the connection',))

Это только несколько из многих ошибок

Как устранить ошибку ssl в запросах на использование сканера?

...