<?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 SSL errors again in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/ssl-errors-again/m-p/5427576#M4558</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm having SSL issues again.&lt;BR /&gt;&lt;BR /&gt;On the computer I'm building my API app, everything works pretty much all the time no matter what I did with SSL verification.&lt;BR /&gt;&lt;BR /&gt;I then use "auto-py-to-exe" to convert it to exe and move it to a fresh test laptop (doesn't have python natively installed), it fails SSL verification, unable to get local issuer certificate ssl.c:992.&lt;BR /&gt;&lt;BR /&gt;I have tried using certifi,&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;verify&lt;/SPAN&gt;=certifi.where()&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;tried downloading the server cert and pointing directly to it ..&lt;BR /&gt;I queried the server directly to check the cert was correct.&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;DigiCert Global G2 TLS RSA SHA256 2020 CA1.crt&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;(both of these options work on the build pc, not the test pc. The build pc also works if I don't specify any verification at all and don't import certifi)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;On the test laptop I tried installing the cert just in case, but it made no difference. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I checked both machines system variables in case there was any relevant difference - nope.&lt;BR /&gt;I made sure everything is up to date - auti-py-to-exe, urllib3, requests, python, certifi.&lt;BR /&gt;I tried rolling back to a previous version of auto-py.&lt;BR /&gt;&lt;BR /&gt;If I disable the SSL verification, it works on the test laptop fine so I know the general code is ok, iv searched all over the internet and cant find an answer &lt;SPAN class="lia-unicode-emoji" title=":disappointed_face:"&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 24 Apr 2024 15:14:17 GMT</pubDate>
    <dc:creator>Adrian41</dc:creator>
    <dc:date>2024-04-24T15:14:17Z</dc:date>
    <item>
      <title>SSL errors again</title>
      <link>https://community.cisco.com/t5/network-platform-api/ssl-errors-again/m-p/5427576#M4558</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm having SSL issues again.&lt;BR /&gt;&lt;BR /&gt;On the computer I'm building my API app, everything works pretty much all the time no matter what I did with SSL verification.&lt;BR /&gt;&lt;BR /&gt;I then use "auto-py-to-exe" to convert it to exe and move it to a fresh test laptop (doesn't have python natively installed), it fails SSL verification, unable to get local issuer certificate ssl.c:992.&lt;BR /&gt;&lt;BR /&gt;I have tried using certifi,&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;verify&lt;/SPAN&gt;=certifi.where()&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;tried downloading the server cert and pointing directly to it ..&lt;BR /&gt;I queried the server directly to check the cert was correct.&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;DigiCert Global G2 TLS RSA SHA256 2020 CA1.crt&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;(both of these options work on the build pc, not the test pc. The build pc also works if I don't specify any verification at all and don't import certifi)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;On the test laptop I tried installing the cert just in case, but it made no difference. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I checked both machines system variables in case there was any relevant difference - nope.&lt;BR /&gt;I made sure everything is up to date - auti-py-to-exe, urllib3, requests, python, certifi.&lt;BR /&gt;I tried rolling back to a previous version of auto-py.&lt;BR /&gt;&lt;BR /&gt;If I disable the SSL verification, it works on the test laptop fine so I know the general code is ok, iv searched all over the internet and cant find an answer &lt;SPAN class="lia-unicode-emoji" title=":disappointed_face:"&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Apr 2024 15:14:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/ssl-errors-again/m-p/5427576#M4558</guid>
      <dc:creator>Adrian41</dc:creator>
      <dc:date>2024-04-24T15:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: SSL errors again</title>
      <link>https://community.cisco.com/t5/network-platform-api/ssl-errors-again/m-p/5427577#M4559</link>
      <description>&lt;P&gt;I suggest you open a support case.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 11:04:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/ssl-errors-again/m-p/5427577#M4559</guid>
      <dc:creator>aleabrahao</dc:creator>
      <dc:date>2024-04-26T11:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: SSL errors again</title>
      <link>https://community.cisco.com/t5/network-platform-api/ssl-errors-again/m-p/5427578#M4560</link>
      <description>&lt;P&gt;cheers, I looked deeper into it and it seems like the server isn't sending the full cert chain. Although I manually downloaded all the certs and bundled them together which should work but still nothing &lt;SPAN class="lia-unicode-emoji" title=":disappointed_face:"&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;will see what support say &lt;SPAN class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 13:43:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/ssl-errors-again/m-p/5427578#M4560</guid>
      <dc:creator>Adrian41</dc:creator>
      <dc:date>2024-04-26T13:43:17Z</dc:date>
    </item>
  </channel>
</rss>

