IBM Security QRadar SOAR

 View Only
  • 1.  TLS Error While Running Resilient-Circuits

    Posted Thu February 02, 2023 01:11 PM
    Dears,

    While I am running resilient-circuits config -c on the integration server I got below error regarding TLS  issue as it isn't compatible with python 2.7.

    /usr/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py:52: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
      from cryptography import x509
    Traceback (most recent call last):
      File "/usr/bin/resilient-circuits", line 5, in <module>
        from resilient_circuits.bin.resilient_circuits_cmd import main
      File "/usr/lib/python2.7/site-packages/resilient_circuits/__init__.py", line 9, in <module>
        from .actions_component import ResilientComponent
      File "/usr/lib/python2.7/site-packages/resilient_circuits/actions_component.py", line 39, in <module>
        from resilient_circuits.stomp_component import StompClient
      File "/usr/lib/python2.7/site-packages/resilient_circuits/stomp_component.py", line 34, in <module>
        class StompClient(BaseComponent):
      File "/usr/lib/python2.7/site-packages/resilient_circuits/stomp_component.py", line 46, in StompClient
        ssl_version=ssl.PROTOCOL_TLS if sys.version_info.major == 2 else ssl.PROTOCOL_TLS_CLIENT,
    AttributeError: 'module' object has no attribute 'PROTOCOL_TLS'​

    Appreciate support if anyone hit with this problem before and if it is applicable to install python 3 on integration server with apphost.

    Thanks,



    ------------------------------
    mohamed khalil
    ------------------------------


  • 2.  RE: TLS Error While Running Resilient-Circuits

    Posted Fri February 03, 2023 12:13 AM
    hello
    which version ?
    if V45 or later you will face this issues

    ------------------------------
    kamal ghanem
    ------------------------------



  • 3.  RE: TLS Error While Running Resilient-Circuits
    Best Answer

    Posted Fri February 03, 2023 04:14 AM
    In recent versions of Resilient Circuits we moved to using https://docs.python.org/2/library/ssl.html#ssl.PROTOCOL_TLS which is more secure a protocol compared with PROTOCOL_SSLv23. According to Python documentation, the new protocol is available from 2.7.13 onwards. What version of Python are you using?

    Our pre-requisites for the integration server (https://www.ibm.com/docs/en/sqsp/47?topic=prerequisites-integration-server) no longer mention Python 2.7. We will find it hard to catch problems with Python 2.7 since we now primarily use 3.6 and 3.9. It is probably time you consider moving to a supported version of Python.

    If you are using a pre-2.7.13 version then consider upgrading to the latest version in the 2.7 code stream or roll back the version of Resilient Circuits to v45.

    ------------------------------
    BEN WILLIAMS
    ------------------------------



  • 4.  RE: TLS Error While Running Resilient-Circuits

    Posted Tue February 07, 2023 03:53 AM
    Hello Ben,

    Thanks for informing me, I have managed to install python 3 and installed resilient circuit on it. And know it is working fine thanks a lot.


    ------------------------------
    mohamed khalil
    ------------------------------



  • 5.  RE: TLS Error While Running Resilient-Circuits

    Posted Tue February 07, 2023 03:52 AM
    Hello Kamal,

    It was version 47, but I managed to solve it by installing python 3 and installing a resilient circuit on it instead of python 2.

    Thanks,

    ------------------------------
    mohamed khalil
    ------------------------------