OpenSSL.SSL.Error: [('SSL routines', 'tls_parse_stoc_server_name', 'bad extension')] using request.get

881 views Asked by At

import requests

url = 'https://v11.com:8080'

res = requests.get(url, verify = 'ca.arraynetca.cert.pem')

Error: Traceback (most recent call last): File "C:\Users\dbansal\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\contrib\pyopenssl.py", line 472, in wrap_socket cnx.do_handshake() File "C:\Users\dbansal\AppData\Local\Programs\Python\Python37-32\lib\site-packages\OpenSSL\SSL.py", line 1716, in do_handshake self._raise_ssl_error(self._ssl, result) File "C:\Users\dbansal\AppData\Local\Programs\Python\Python37-32\lib\site-packages\OpenSSL\SSL.py", line 1456, in _raise_ssl_error _raise_current_error() File "C:\Users\dbansal\AppData\Local\Programs\Python\Python37-32\lib\site-packages\OpenSSL_util.py", line 54, in exception_from_error_queue raise exception_type(errors) OpenSSL.SSL.Error: [('SSL routines', 'tls_parse_stoc_server_name', 'bad extension')]

"""

ssl Server is running with TLSv1:TLSv11:TLSv12:TLSv13.

through openssl s_client -connect ssl handshake is working fine using tls1_2 protocol.

"""

0

There are 0 answers