Created own self-signed certificate, and replaced with the certificate and key in the designated path '/usr/local/demisto/d1.cert.pem & /usr/local/demisto/d1.key.pem' (on XSOAR engine) and given the required permission and ownership to the files. For one of the endpoint that we are looking to integrate with XSOAR is tighten with 2-way SSL connection. To establish an SSL connection with that endpoint, it is necessary to pass XSOAR certificate and its corresponding private key.
Connection is successful for the following command from the terminal: 'wget <endpoint URL> --certificate=/usr/local/demisto/d1.cert.pem --private-key=/usr/local/demisto/d1.key.pem'.
However, upon attempting to execute integration code from XSOAR UI, encountered an error message of 'SSL handshake failure'.
when tried to pass XSOAR certificate path and key path explicitly, getting the error message 'OSError: Could not find the TLS certificate file, invalid path: '/usr/local/demisto/d1.cert.pem'.
Why XSOAR is failing to use the certificate and key from the default path '/usr/local/demisto'? Are there any configuration needs to be add to make the XSOAR to use certificates and key?
I'm confused by your questions. The certificate file for the engine is used for communication to the engine server only.
If your integration requires a custom certification, please follow the instructions here - https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/6.10/Cortex-XSOAR-Administrator-Guide/Config...
The error message you're getting is because the container does not have a file in that location. We do not support accessing OS filesystem through the container. This use to be allowed with engines before. You can replicate what we do for the "Remote Access" integration. We go via the network using scp.
Sorry for the confusion,
I'm trying to integration one of the endpoint via XSOAR engine. It is tightened up with 2 way SSL communication. from XSOAR engine terminal, I'm able to connect the endpoint using the command 'wget <endpoint URL> --certificate=/usr/local/demisto/d1.cert.pem --private-key=/usr/local/demisto/d1.key.pem' '. (Note: XSOAR certificate and private key should be passed on the command for successful connection else it will through 'SSL: SSLV3_ALERT_HANDSHAKE_FAILURE' error).
How to achieve this in integration code?
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!