<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Forescout Adaptive Response TA - SSL error in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SSL-error-How-do-I-fix-this-Forescout-Adaptive-Response-TA/m-p/600637#M76946</link>
    <description>&lt;P&gt;The permission of cacert.pem looks root:root. Will that work ?&lt;BR /&gt;Also the path&amp;nbsp;/app/analytics/splunk/lib/python3.7/site-packages/certifi/cacert.pem has a certificate which seems interesting to me. Forescout document mentioned a different path.&lt;/P&gt;</description>
    <pubDate>Sun, 05 Jun 2022 23:51:52 GMT</pubDate>
    <dc:creator>alexstanley85</dc:creator>
    <dc:date>2022-06-05T23:51:52Z</dc:date>
    <item>
      <title>SSL error: How do I fix this Forescout Adaptive Response TA?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SSL-error-How-do-I-fix-this-Forescout-Adaptive-Response-TA/m-p/597890#M76822</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;I'm having a nightmare getting this adaptive response TA working.&amp;nbsp; Has anybody got it working? I'm getting the following error.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;ta_forescout_response_init.py:45&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;CRITICAL&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;Unexpected&lt;/SPAN&gt; &lt;SPAN class=""&gt;error&lt;/SPAN&gt; &lt;SPAN class=""&gt;while&lt;/SPAN&gt; &lt;SPAN class=""&gt;getting&lt;/SPAN&gt; &lt;SPAN class=""&gt;alert&lt;/SPAN&gt; &lt;SPAN class=""&gt;actions&lt;/SPAN&gt; &lt;SPAN class=""&gt;from&lt;/SPAN&gt; &lt;SPAN class=""&gt;CounterACT:&lt;/SPAN&gt; &lt;SPAN class=""&gt;HTTPSConnectionPool&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;host=&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;forescout.mattlab.local&lt;/SPAN&gt;&lt;SPAN&gt;', &lt;/SPAN&gt;&lt;SPAN class=""&gt;port=443&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;Max&lt;/SPAN&gt; &lt;SPAN class=""&gt;retries&lt;/SPAN&gt; &lt;SPAN class=""&gt;exceeded&lt;/SPAN&gt; &lt;SPAN class=""&gt;with&lt;/SPAN&gt; &lt;SPAN class=""&gt;url:&lt;/SPAN&gt; &lt;SPAN class=""&gt;/splunk/actions_info&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;auth&lt;/SPAN&gt;=&lt;SPAN class=""&gt;CounterACT&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;%20&lt;/SPAN&gt;&lt;SPAN class=""&gt;A6885132-A0EE-4AED-A2A3-8C01AF148957&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN class=""&gt;Caused&lt;/SPAN&gt; &lt;SPAN class=""&gt;by&lt;/SPAN&gt; &lt;SPAN class=""&gt;SSLError&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;SSLCertVerificationError&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, '[&lt;/SPAN&gt;&lt;SPAN class=""&gt;SSL:&lt;/SPAN&gt; &lt;SPAN class=""&gt;CERTIFICATE_VERIFY_FAILED&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN class=""&gt;certificate&lt;/SPAN&gt; &lt;SPAN class=""&gt;verify&lt;/SPAN&gt; &lt;SPAN class=""&gt;failed:&lt;/SPAN&gt; &lt;SPAN class=""&gt;self&lt;/SPAN&gt; &lt;SPAN class=""&gt;signed&lt;/SPAN&gt; &lt;SPAN class=""&gt;certificate&lt;/SPAN&gt; &lt;SPAN class=""&gt;in&lt;/SPAN&gt; &lt;SPAN class=""&gt;certificate&lt;/SPAN&gt; &lt;SPAN class=""&gt;chain&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN class=""&gt;_ssl.c:1106&lt;/SPAN&gt;&lt;SPAN&gt;)')))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The guide I've followed is here.&amp;nbsp; Specifically page 15:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.forescout.com/resources/app-and-add-on-for-splunk-how-to-guide-2-9-1/" target="_blank" rel="noopener"&gt;https://www.forescout.com/resources/app-and-add-on-for-splunk-how-to-guide-2-9-1/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;********************************************************************************************&lt;/P&gt;
&lt;P&gt;To enable HTTPS communication using Forescout eyeExtend for Splunk:&lt;/P&gt;
&lt;P&gt;1. Operators must not use the default self-signed web-portal certificate; instead,&lt;BR /&gt;they need to procure their own certificate. See Appendix &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt; System&lt;BR /&gt;Certificate for Web Portal.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;2. Once the certificates are installed on the CounterACT Appliance, the Forescout&lt;BR /&gt;platform Public Key Certificate must be appended to the cacert.pem file at the&lt;BR /&gt;following location:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;$SPLUNK_HOME/lib/python2.7/site-packages/requests/cacert.pem&lt;/P&gt;
&lt;P&gt;****************************************************************************&lt;/P&gt;
&lt;P&gt;I have created a server certificate for forescout and copied the CA cert over to request directory below&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;root@splunklinux:/opt/splunk/lib/python3.7/site-packages/requests# ls -al&lt;BR /&gt;total 228&lt;BR /&gt;drwxrwxrwx 3 10777 10777 4096 May 15 21:56 .&lt;BR /&gt;drwxrwxrwx 73 10777 10777 4096 May 2 12:56 ..&lt;BR /&gt;-rwxrwxrwx 1 10777 10777 21344 Feb 1 00:57 adapters.py&lt;BR /&gt;-rwxrwxrwx 1 10777 10777 6271 Feb 1 00:57 api.py&lt;BR /&gt;-rwxrwxrwx 1 10777 10777 10206 Feb 1 00:57 auth.py&lt;BR /&gt;-rw-r--r-- 1 root root 2110 May 15 19:26 cacert.pem&lt;BR /&gt;-rwxrwxrwx 1 10777 10777 453 Feb 1 00:57 certs.py&lt;BR /&gt;-rwxrwxrwx 1 10777 10777 1678 Feb 1 00:57 compat.py&lt;BR /&gt;-rwxrwxrwx 1 10777 10777 18430 Feb 1 00:57 cookies.py&lt;BR /&gt;-rwxrwxrwx 1 10777 10777 3185 Feb 1 00:57 exceptions.py&lt;BR /&gt;-rwxrwxrwx 1 10777 10777 3515 Feb 1 00:57 help.py&lt;BR /&gt;-rwxrwxrwx 1 10777 10777 757 Feb 1 00:57 hooks.py&lt;BR /&gt;-rwxrwxrwx 1 10777 10777 3921 Feb 1 00:57 __init__.py&lt;BR /&gt;-rwxrwxrwx 1 10777 10777 1096 Feb 1 00:57 _internal_utils.py&lt;BR /&gt;-rwxrwxrwx 1 10777 10777 34210 Feb 1 00:57 models.py&lt;BR /&gt;-rwxrwxrwx 1 10777 10777 542 Feb 1 00:57 packages.py&lt;BR /&gt;drwxrwxrwx 2 root root 4096 May 15 21:59 __pycache__&lt;BR /&gt;-rwxrwxrwx 1 10777 10777 29332 May 15 21:56 sessions.py&lt;BR /&gt;-rwxrwxrwx 1 10777 10777 4129 Feb 1 00:57 status_codes.py&lt;BR /&gt;-rwxrwxrwx 1 10777 10777 2981 Feb 1 00:57 structures.py&lt;BR /&gt;-rwxrwxrwx 1 10777 10777 30049 Feb 1 00:57 utils.py&lt;BR /&gt;-rwxrwxrwx 1 10777 10777 436 Feb 1 00:57 __version__.py&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;there was no cacert.pem file in this location - what does it mean append the public key to the cacert.pem file?&amp;nbsp; i just copied the ca cert from my forescout signed CA over to this location and called it cacert.pem as it didn't exist?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 03:02:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SSL-error-How-do-I-fix-this-Forescout-Adaptive-Response-TA/m-p/597890#M76822</guid>
      <dc:creator>mattmans1</dc:creator>
      <dc:date>2022-06-06T03:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Forescout Adaptive Response TA - SSL error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SSL-error-How-do-I-fix-this-Forescout-Adaptive-Response-TA/m-p/597899#M76823</link>
      <description>&lt;P&gt;The general approach seems to be good but.&lt;/P&gt;&lt;P&gt;Which version of splunk are you using? This version of app is meant for Splunk 7 which is EOL. Splunk 8 uses Python 3, not 2. (This should have no connection with the error itself; just mentioning this as a general advice). There is a 3.0.3 version available on Splunkbase.&lt;/P&gt;&lt;P&gt;Try connecting to the web portal using openssl s_client and see the certificate chain.&lt;/P&gt;&lt;P&gt;Did you indeed apply a certificate from an external CA or did you simply copy out the default self-signed certificate from the server? (The docs say it won't work this way).&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 06:21:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SSL-error-How-do-I-fix-this-Forescout-Adaptive-Response-TA/m-p/597899#M76823</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-05-16T06:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Forescout Adaptive Response TA - SSL error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SSL-error-How-do-I-fix-this-Forescout-Adaptive-Response-TA/m-p/597912#M76824</link>
      <description>&lt;P&gt;Hi PickleRick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thankyou for the reply.&amp;nbsp; I'm using the latest which is 8.2.6 with the latest version of forescout 8.4.&amp;nbsp; I did notice it used the python 3 libraries rather than 2.&amp;nbsp; I have a windows CA so i signed the CSR from Forescout with a CA a created using openssl - copied the CA part to the splunk directory after.&lt;/P&gt;&lt;P&gt;I will try using the openssl client you specified to see the certificate chain - im suspecting its not presenting the CACERT.PEM certificate so i agree i need to figure out of that's actually what's not happening.&lt;/P&gt;&lt;P&gt;thanks for the advice i will update later when i try again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 08:35:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SSL-error-How-do-I-fix-this-Forescout-Adaptive-Response-TA/m-p/597912#M76824</guid>
      <dc:creator>mattmans1</dc:creator>
      <dc:date>2022-05-16T08:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Forescout Adaptive Response TA - SSL error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SSL-error-How-do-I-fix-this-Forescout-Adaptive-Response-TA/m-p/600637#M76946</link>
      <description>&lt;P&gt;The permission of cacert.pem looks root:root. Will that work ?&lt;BR /&gt;Also the path&amp;nbsp;/app/analytics/splunk/lib/python3.7/site-packages/certifi/cacert.pem has a certificate which seems interesting to me. Forescout document mentioned a different path.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jun 2022 23:51:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SSL-error-How-do-I-fix-this-Forescout-Adaptive-Response-TA/m-p/600637#M76946</guid>
      <dc:creator>alexstanley85</dc:creator>
      <dc:date>2022-06-05T23:51:52Z</dc:date>
    </item>
  </channel>
</rss>

