Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SSL: NO_CIPHERS_AVAILABLE] no ciphers available #236

Open
Artucuno opened this issue Nov 18, 2023 · 0 comments
Open

[SSL: NO_CIPHERS_AVAILABLE] no ciphers available #236

Artucuno opened this issue Nov 18, 2023 · 0 comments

Comments

@Artucuno
Copy link

Traceback (most recent call last):
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 1348, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
          File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 1283, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 1329, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 1278, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 1038, in _send_output
self.send(msg)
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 976, in send
self.connect()
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\site-packages\imcsdk\imcdriver.py", line 123, in connect
self.sock = ssl_context.wrap_socket(sock)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\ssl.py", line 517, in wrap_socket
return self.sslsocket_class._create(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\ssl.py", line 1075, in _create
self.do_handshake()
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\ssl.py", line 1346, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1002)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\site-packages\imcsdk\imcdriver.py", line 257, in post
response = opener.open(request, timeout=timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
           File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 519, in open
response = self._open(req, data)
           ^^^^^^^^^^^^^^^^^^^^^
           File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 536, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                          File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 496, in _call_chain
result = func(*args)
         ^^^^^^^^^^^
         File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\site-packages\imcsdk\imcdriver.py", line 88, in https_open
return self.do_open(TLSConnection, req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 1351, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1002)>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 1348, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
          File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 1283, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 1329, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 1278, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 1038, in _send_output
self.send(msg)
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 976, in send
self.connect()
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\site-packages\imcsdk\imcdriver.py", line 77, in connect
self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file,
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\ssl.py", line 1446, in wrap_socket
return context.wrap_socket(
    ^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\ssl.py", line 517, in wrap_socket
return self.sslsocket_class._create(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\ssl.py", line 1075, in _create
self.do_handshake()
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\ssl.py", line 1346, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: NO_CIPHERS_AVAILABLE] no ciphers available (_ssl.c:1002)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\artu\IdeaProjects\CIMC Test\run.py", line 4, in <module>
                                                                 print(handle.login())
                                                                 ^^^^^^^^^^^^^^
                                                                 File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\site-packages\imcsdk\imchandle.py", line 152, in login
return self._login(auto_refresh=auto_refresh, force=force, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\site-packages\imcsdk\imcsession.py", line 585, in _login
response = self.post_elem(elem, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\site-packages\imcsdk\imcsession.py", line 280, in post_elem
response_str = self.post_xml(xml_str, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\site-packages\imcsdk\imcsession.py", line 231, in post_xml
response_str = self.post(uri=imc_uri, data=xml_str, read=read, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\site-packages\imcsdk\imcsession.py", line 207, in post
response = self.__driver.post(uri=uri, data=data, read=read, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\site-packages\imcsdk\imcdriver.py", line 270, in post
response = opener.open(request, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 519, in open
response = self._open(req, data)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 536, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                          File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 496, in _call_chain
result = func(*args)
         ^^^^^^^^^^^
         File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\site-packages\imcsdk\imcdriver.py", line 50, in https_open
return self.do_open(TLS1Connection, req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\artu\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 1351, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: NO_CIPHERS_AVAILABLE] no ciphers available (_ssl.c:1002)>

Process finished with exit code 1

Caused by running:

from imcsdk.imchandle import ImcHandle

handle = ImcHandle("10.1.1.129", "admin", "[Redacted]", port=443)
handle.login()

Model: UCS C200 M2
BIOS Version: C200.1.4.3o.0 (Build Date: 07/06/2018)
CIMC Version: 1.4(3z09)

Any help would be really appreciated, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant