<?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 Error for Token in Python in Services Discussions</title>
    <link>https://community.cisco.com/t5/services-discussions/ssl-error-for-token-in-python/m-p/3561134#M224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have asked this in a few different places but I think I finally have an understanding enough to make it a dedicated discussion.&amp;nbsp; I recently attempted to register this API -- Cisco PSIRT openVuln API --.&amp;nbsp; I am able to get the key on a MAC in Python 2.7 however not on windows in any version or 3.x on Mac.&amp;nbsp; After a lot of screen time and a lot of forums I think the issue is this....&amp;nbsp; The certificate presented by Cisco is not trusted using the 3.x SSL process in Python.&amp;nbsp; I can get the following line to work in Python &lt;EM&gt;&lt;SPAN&gt;x = client.request("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.google.com" rel="nofollow" target="_blank"&gt;https://www.google.com&lt;/A&gt;&lt;SPAN&gt;")&lt;/SPAN&gt;&lt;/EM&gt; without issue.&amp;nbsp; I am not able to perform this on the cisco url &lt;EM&gt;&lt;SPAN&gt;x = client.request("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.cisco.com" rel="nofollow" target="_blank"&gt;https://www.cisco.com&lt;/A&gt;&lt;SPAN&gt;")&lt;/SPAN&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see the following error when attempting any https address on Cisco.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This takes me to my question.&amp;nbsp; If I am correct and I am not able to authenticate any Cisco certificate using the SSL process in the current version of Python how would I add that? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am standing on the shoulders of giants in the below posts to make this question happen. Thanks all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cisco.com/message/293062"&gt;Re: What values for Auth URL&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cisco.com/thread/64355"&gt;PSIRT - openVuln API Authorization Error&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jun 2018 18:51:26 GMT</pubDate>
    <dc:creator>Nathan Gageby</dc:creator>
    <dc:date>2018-06-12T18:51:26Z</dc:date>
    <item>
      <title>SSL Error for Token in Python</title>
      <link>https://community.cisco.com/t5/services-discussions/ssl-error-for-token-in-python/m-p/3561134#M224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have asked this in a few different places but I think I finally have an understanding enough to make it a dedicated discussion.&amp;nbsp; I recently attempted to register this API -- Cisco PSIRT openVuln API --.&amp;nbsp; I am able to get the key on a MAC in Python 2.7 however not on windows in any version or 3.x on Mac.&amp;nbsp; After a lot of screen time and a lot of forums I think the issue is this....&amp;nbsp; The certificate presented by Cisco is not trusted using the 3.x SSL process in Python.&amp;nbsp; I can get the following line to work in Python &lt;EM&gt;&lt;SPAN&gt;x = client.request("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.google.com" rel="nofollow" target="_blank"&gt;https://www.google.com&lt;/A&gt;&lt;SPAN&gt;")&lt;/SPAN&gt;&lt;/EM&gt; without issue.&amp;nbsp; I am not able to perform this on the cisco url &lt;EM&gt;&lt;SPAN&gt;x = client.request("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.cisco.com" rel="nofollow" target="_blank"&gt;https://www.cisco.com&lt;/A&gt;&lt;SPAN&gt;")&lt;/SPAN&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see the following error when attempting any https address on Cisco.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This takes me to my question.&amp;nbsp; If I am correct and I am not able to authenticate any Cisco certificate using the SSL process in the current version of Python how would I add that? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am standing on the shoulders of giants in the below posts to make this question happen. Thanks all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cisco.com/message/293062"&gt;Re: What values for Auth URL&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cisco.com/thread/64355"&gt;PSIRT - openVuln API Authorization Error&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 18:51:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/ssl-error-for-token-in-python/m-p/3561134#M224</guid>
      <dc:creator>Nathan Gageby</dc:creator>
      <dc:date>2018-06-12T18:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: SSL Error for Token in Python</title>
      <link>https://community.cisco.com/t5/services-discussions/ssl-error-for-token-in-python/m-p/3714507#M348</link>
      <description>&lt;P&gt;I don't know exactly why you're getting that message, but to start from a better baseline, I'd try 2 things:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Use Python 3.5+&lt;/LI&gt;
&lt;LI&gt;Make your attempt using the latest requests&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;If you still get the error, you'll have to debug why it thinks the cert failed and probably view the cert.&amp;nbsp; Is it bad, date, on the CRL, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could also try with curl to see if it's the cert or Python/Requests itself that is the problem.&lt;/P&gt;
&lt;PRE&gt;curl -kv https://www.cisco.com&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Sep 2018 18:16:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/ssl-error-for-token-in-python/m-p/3714507#M348</guid>
      <dc:creator>thiland</dc:creator>
      <dc:date>2018-09-27T18:16:01Z</dc:date>
    </item>
  </channel>
</rss>

