<?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 pxGrid bulk ise session downloads in C (with self signed certificates) in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/pxgrid-bulk-ise-session-downloads-in-c-with-self-signed/m-p/3570357#M128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been trying to get bulk session downloads to work in C with self signed certificates. I'm using the sample code with the 1.0.4.19 pxgrid-sdk. T&lt;SPAN style="font-size: 10pt;"&gt;he only line of the code that I've changed as 1221 of helper.c&amp;nbsp; where I changed:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SSL_CTX_set_verify(ssl_ctx, SSL_VERIFY_PEER, NULL);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;to be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SSL_CTX_set_verify(ssl_ctx, SSL_VERIFY_NONE, NULL);&lt;/P&gt;&lt;P&gt;I found this change to be necessary to use the C API to subscribe to notifications (which is working). when i try to run session_download though i get the following errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*** bulkdownload opened&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2017-08-24T09:54:22 [&amp;nbsp;&amp;nbsp;&amp;nbsp; INFO]: curl_easy_setopt() for CURLOPT_URL: '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://XXXXXXXXX.XXX:8910/pxgrid/mnt/sd/getSessionListByTime" rel="nofollow" target="_blank"&gt;https://XXXXXXXXX.XXX:8910/pxgrid/mnt/sd/getSessionListByTime&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2017-08-24T09:54:25 [&amp;nbsp;&amp;nbsp; ERROR]: startElementHandler - text should have been NULL at file build/gcl/src/pxgrid_bulkdownload_xml_parse.c line 75&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2017-08-24T09:54:25 [&amp;nbsp;&amp;nbsp; ERROR]: startElementHandler - text should have been NULL at file build/gcl/src/pxgrid_bulkdownload_xml_parse.c line 75&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2017-08-24T09:54:25 [&amp;nbsp;&amp;nbsp; ERROR]: XML_Parse() failed at file build/gcl/src/pxgrid_bulkdownload_xml_parse.c line 183&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2017-08-24T09:54:25 [&amp;nbsp;&amp;nbsp; ERROR]: next() failed at file build/gcl/src/pxgrid_bulkdownload.c line 257&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After adding some code to dump the "xml" to screen&amp;nbsp; i'm not actually getting xml but an http 401 error page:&lt;/P&gt;&lt;P&gt;HTTP Status 401 - No AuthenticationProvider found for org.springframework.security.authentication.UsernamePasswordAuthenticationToken&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created java key stores with the same keys I'm trying to use for the bulk download and tested them with the java sample code that does work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again i'm presuming this is related to the handling of keys because, that is the only part of the sample code that i changed. Ideally i would proceed to test revert the sample code and test this with a CA signed key but our admin is out until Monday so I'm at a bit of stand still 'til then. I was hoping someone might've come across this in the mean time and could point me in the right direction so i'm not sitting on my hands. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Aug 2017 14:36:17 GMT</pubDate>
    <dc:creator>aarond_01</dc:creator>
    <dc:date>2017-08-24T14:36:17Z</dc:date>
    <item>
      <title>pxGrid bulk ise session downloads in C (with self signed certificates)</title>
      <link>https://community.cisco.com/t5/network-security/pxgrid-bulk-ise-session-downloads-in-c-with-self-signed/m-p/3570357#M128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been trying to get bulk session downloads to work in C with self signed certificates. I'm using the sample code with the 1.0.4.19 pxgrid-sdk. T&lt;SPAN style="font-size: 10pt;"&gt;he only line of the code that I've changed as 1221 of helper.c&amp;nbsp; where I changed:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SSL_CTX_set_verify(ssl_ctx, SSL_VERIFY_PEER, NULL);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;to be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SSL_CTX_set_verify(ssl_ctx, SSL_VERIFY_NONE, NULL);&lt;/P&gt;&lt;P&gt;I found this change to be necessary to use the C API to subscribe to notifications (which is working). when i try to run session_download though i get the following errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*** bulkdownload opened&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2017-08-24T09:54:22 [&amp;nbsp;&amp;nbsp;&amp;nbsp; INFO]: curl_easy_setopt() for CURLOPT_URL: '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://XXXXXXXXX.XXX:8910/pxgrid/mnt/sd/getSessionListByTime" rel="nofollow" target="_blank"&gt;https://XXXXXXXXX.XXX:8910/pxgrid/mnt/sd/getSessionListByTime&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2017-08-24T09:54:25 [&amp;nbsp;&amp;nbsp; ERROR]: startElementHandler - text should have been NULL at file build/gcl/src/pxgrid_bulkdownload_xml_parse.c line 75&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2017-08-24T09:54:25 [&amp;nbsp;&amp;nbsp; ERROR]: startElementHandler - text should have been NULL at file build/gcl/src/pxgrid_bulkdownload_xml_parse.c line 75&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2017-08-24T09:54:25 [&amp;nbsp;&amp;nbsp; ERROR]: XML_Parse() failed at file build/gcl/src/pxgrid_bulkdownload_xml_parse.c line 183&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2017-08-24T09:54:25 [&amp;nbsp;&amp;nbsp; ERROR]: next() failed at file build/gcl/src/pxgrid_bulkdownload.c line 257&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After adding some code to dump the "xml" to screen&amp;nbsp; i'm not actually getting xml but an http 401 error page:&lt;/P&gt;&lt;P&gt;HTTP Status 401 - No AuthenticationProvider found for org.springframework.security.authentication.UsernamePasswordAuthenticationToken&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created java key stores with the same keys I'm trying to use for the bulk download and tested them with the java sample code that does work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again i'm presuming this is related to the handling of keys because, that is the only part of the sample code that i changed. Ideally i would proceed to test revert the sample code and test this with a CA signed key but our admin is out until Monday so I'm at a bit of stand still 'til then. I was hoping someone might've come across this in the mean time and could point me in the right direction so i'm not sitting on my hands. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 14:36:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/pxgrid-bulk-ise-session-downloads-in-c-with-self-signed/m-p/3570357#M128</guid>
      <dc:creator>aarond_01</dc:creator>
      <dc:date>2017-08-24T14:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: pxGrid bulk ise session downloads in C (with self signed certificates)</title>
      <link>https://community.cisco.com/t5/network-security/pxgrid-bulk-ise-session-downloads-in-c-with-self-signed/m-p/3570358#M129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having gotten a signed certificate for my client code I'm still seeing the same errors, again with my code and with unmodified sample code. I can't imagine what i'm missing, the ISE end must be configured correctly because the Java samples work. I'm really at a loss for why this isn't working in C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 18:17:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/pxgrid-bulk-ise-session-downloads-in-c-with-self-signed/m-p/3570358#M129</guid>
      <dc:creator>aarond_01</dc:creator>
      <dc:date>2017-08-30T18:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: pxGrid bulk ise session downloads in C (with self signed certificates)</title>
      <link>https://community.cisco.com/t5/network-security/pxgrid-bulk-ise-session-downloads-in-c-with-self-signed/m-p/3570359#M130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved it. It would seem you *must* link with the libcurl in the SDK other versions don't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 18:15:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/pxgrid-bulk-ise-session-downloads-in-c-with-self-signed/m-p/3570359#M130</guid>
      <dc:creator>aarond_01</dc:creator>
      <dc:date>2017-08-31T18:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: pxGrid bulk ise session downloads in C (with self signed certificates)</title>
      <link>https://community.cisco.com/t5/network-security/pxgrid-bulk-ise-session-downloads-in-c-with-self-signed/m-p/3570360#M131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the ver of ISE, What certificate are you using. I would suggest if ISE version is 2.2+ use internal CA cert.&lt;/P&gt;&lt;P&gt;Please let us know what certificate pxgrid is boud to. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 18:33:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/pxgrid-bulk-ise-session-downloads-in-c-with-self-signed/m-p/3570360#M131</guid>
      <dc:creator>bharav</dc:creator>
      <dc:date>2017-08-31T18:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: pxGrid bulk ise session downloads in C (with self signed certificates)</title>
      <link>https://community.cisco.com/t5/network-security/pxgrid-bulk-ise-session-downloads-in-c-with-self-signed/m-p/3938365#M132</link>
      <description>&lt;P&gt;Can you post the solution or workaround please?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 00:36:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/pxgrid-bulk-ise-session-downloads-in-c-with-self-signed/m-p/3938365#M132</guid>
      <dc:creator>pro_engineering</dc:creator>
      <dc:date>2019-10-10T00:36:17Z</dc:date>
    </item>
  </channel>
</rss>

