Issue with certificates - Encountering SSL handshake failure error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Issue with certificates - Encountering SSL handshake failure error

L2 Linker

Hi,
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?

Thanks

2 REPLIES 2

L5 Sessionator

Hi @DP696,

 

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. 

Hi @jfernandes1,

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?

Thanks

  • 2122 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!