<?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: SSL error in python in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429917#M4911</link>
    <description>&lt;P&gt;The error message CERTIFICATE_VERIFY_FAILED that you are facing while making API calls via Python is a&lt;SPAN&gt;  type of standard&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;error that users using a Python environment usually face. The error occurs when making HTTPS requests using the requests module in Python.&lt;/P&gt;&lt;P&gt;When the client’s browser affirms that the SSL certificate is valid and authentic, it establishes the connection. But if the client cannot confirm the server’s originality through the Secure Socket Layer certificate, the certificate_verify_failed error will pop up. There are different reasons such as:-&lt;/P&gt;&lt;P&gt;1) Expired or Invalid SSL Certificate&lt;/P&gt;&lt;P&gt;2) The issue with the SSL Certificate Chain&lt;/P&gt;&lt;P&gt;3) Obsolete Python Default Certificates&lt;/P&gt;&lt;P&gt;As, their many ways to fix the error, you need to understand it in detail. I found the helpful resource guide:- &lt;A href="https://cheapsslweb.com/blog/ssl-certificate-verify-failed-error-in-python/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://cheapsslweb.com/blog/ssl-certificate-verify-failed-error-in-python/&lt;/A&gt; for the error that was being faced.&lt;/P&gt;&lt;P&gt;I hope it helps!&lt;/P&gt;</description>
    <pubDate>Thu, 15 May 2025 07:21:26 GMT</pubDate>
    <dc:creator>janki-p12</dc:creator>
    <dc:date>2025-05-15T07:21:26Z</dc:date>
    <item>
      <title>SSL error in python</title>
      <link>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429906#M4900</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am making API calls via python script in "Pycharm". Every call I make fails with &lt;/P&gt;&lt;P&gt;requests.exceptions.SSLError: HTTPSConnectionPool(host='api.meraki.com', port=443): Max retries exceeded with url: /api/v1/organizations/xxxxx/networks (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)')))&lt;/P&gt;&lt;P&gt;I can get around this by adding a verify=false header but I want to fix it properly.&lt;BR /&gt;&lt;BR /&gt;I think I fix this with the header &lt;SPAN&gt;verify=[path to raw CA Bundle]  &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;is that correct? and if so, where do I get the cert bundle from?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 14:58:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429906#M4900</guid>
      <dc:creator>Adrian41</dc:creator>
      <dc:date>2023-02-27T14:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: SSL error in python</title>
      <link>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429907#M4901</link>
      <description>&lt;P&gt;I used this command to show the certificate being used:&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;openssl s_client -connect api.meraki.com:443 2&amp;gt;/dev/null | openssl x509 -noout -text&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It shows the issuer to be:&lt;/P&gt;&lt;P&gt;Issuer: C = US, O = DigiCert Inc, CN = DigiCert TLS RSA SHA256 2020 CA1&lt;/P&gt;&lt;P&gt;So you would need to load in one of the Digicert root certificates:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.digicert.com/kb/digicert-root-certificates.htm" target="_self" rel="nofollow noopener noreferrer"&gt;https://www.digicert.com/kb/digicert-root-certificates.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;More info:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PhilipDAth_0-1677527068026.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/262969iD2D8845DC4557ABA/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PhilipDAth_1-1677527082925.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/262966i473DF117C0952E76/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PhilipDAth_2-1677527096962.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/262967i77BD316375BEC370/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 19:45:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429907#M4901</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2023-02-27T19:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: SSL error in python</title>
      <link>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429908#M4902</link>
      <description>&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 08:36:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429908#M4902</guid>
      <dc:creator>Adrian41</dc:creator>
      <dc:date>2023-02-28T08:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: SSL error in python</title>
      <link>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429909#M4903</link>
      <description>&lt;P&gt;&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; Im still having trouble.&lt;BR /&gt;&lt;BR /&gt;I installed a few of the certs into my cert store which didnt work, so I then put them in a folder and just added a header in the code to point to it (I tried verify=   and cert=).&lt;BR /&gt;&lt;BR /&gt;Still didnt work - Im not sure what to do next. I just get errors saying unable to get local issuer certificate (_ssl.c:992 &lt;BR /&gt;&lt;BR /&gt;I spoke to support for Pycharm and they said the correct method is specified by the API and not pycharm &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;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 08:55:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429909#M4903</guid>
      <dc:creator>Adrian41</dc:creator>
      <dc:date>2023-02-28T08:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: SSL error in python</title>
      <link>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429910#M4904</link>
      <description>&lt;P&gt;figured it out, the correct syntax is verify="path/to/cert.crt"&lt;BR /&gt;&lt;BR /&gt;I used the cisco cert which i downloaded from the cisco API dashboard&lt;BR /&gt;&lt;A href="https://developer.cisco.com/meraki/api/#!getting-started/obtaining-your-meraki-api-key" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api/#!getting-started/obtaining-your-meraki-api-key&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 16:28:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429910#M4904</guid>
      <dc:creator>Adrian41</dc:creator>
      <dc:date>2023-02-28T16:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: SSL error in python</title>
      <link>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429911#M4905</link>
      <description>&lt;P&gt;&lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/84478"&gt;@Adrian41&lt;/A&gt; are you using a Apple M1/M2 Mac? Your python / pycharm environment could have an effect on SSL as well? Under normal circumstances you should not need to download Certificates for Meraki API&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 07:46:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429911#M4905</guid>
      <dc:creator>hstruckm</dc:creator>
      <dc:date>2023-03-06T07:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: SSL error in python</title>
      <link>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429912#M4906</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;No, just plain windows.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 08:30:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429912#M4906</guid>
      <dc:creator>Adrian41</dc:creator>
      <dc:date>2023-03-06T08:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: SSL error in python</title>
      <link>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429913#M4907</link>
      <description>&lt;P&gt;I am using Windows and getting the similar error to yours:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;requests.exceptions.SSLError: HTTPSConnectionPool(host='api.meraki.com', port=443): Max retries exceeded with url: /api/v1/organizations/xxxxx/networks (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)')))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Where in the API Dashboard did you get the Cert?&lt;/P&gt;&lt;P&gt;I can user Postman with no SSL issue but I need to use Python for other scripts.  Can't get pass the SSL: error.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 23:10:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429913#M4907</guid>
      <dc:creator>Jun Sarceno</dc:creator>
      <dc:date>2023-06-21T23:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: SSL error in python</title>
      <link>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429914#M4908</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I have the same issue and i'm using a Apple M1.&lt;/P&gt;&lt;P&gt;here is the error message:&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;"2024-09-19 22:26:12 &lt;SPAN class=""&gt;  &lt;/SPAN&gt;meraki.aio:&lt;SPAN class=""&gt;  &lt;/SPAN&gt;WARNING &amp;gt; organizations, getOrganizationAdmins &amp;gt; &lt;A href="https://api.meraki.com/api/v1/organizations/1128782/admins" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api.meraki.com/api/v1/organizations/1128782/admins&lt;/A&gt; - Cannot connect to host api.meraki.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1000)')], retrying in 1 second"&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt; &lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Any idea?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 14:37:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429914#M4908</guid>
      <dc:creator>Matq</dc:creator>
      <dc:date>2024-09-19T14:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: SSL error in python</title>
      <link>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429915#M4909</link>
      <description>&lt;P&gt;The solution to this is above:&lt;BR /&gt;&lt;A href="https://community.meraki.com/t5/Developers-APIs/SSL-error-in-python/m-p/186312/highlight/true#M7688" target="_blank"&gt;https://community.meraki.com/t5/Developers-APIs/SSL-error-in-python/m-p/186312/highlight/true#M7688&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Note that if your company is using transparent TLS inspection (which I think it is, because you are getting a warning about a self signed certificate) then you will need to get that certificate from your comany instead.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 20:08:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429915#M4909</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2024-09-19T20:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: SSL error in python</title>
      <link>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429916#M4910</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thank you for your reply. I managed to to fix it after my post.&lt;/P&gt;&lt;P&gt;On mac, when you install python, the is a exe named: "Install Certificates.command: in the /Application/Python 3.12/&lt;/P&gt;&lt;P&gt;After executing it, it fixed the issue.&lt;/P&gt;&lt;P&gt;No need to chaneg the meraki script.&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Mat&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 22:33:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429916#M4910</guid>
      <dc:creator>Matq</dc:creator>
      <dc:date>2024-09-19T22:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: SSL error in python</title>
      <link>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429917#M4911</link>
      <description>&lt;P&gt;The error message CERTIFICATE_VERIFY_FAILED that you are facing while making API calls via Python is a&lt;SPAN&gt;  type of standard&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;error that users using a Python environment usually face. The error occurs when making HTTPS requests using the requests module in Python.&lt;/P&gt;&lt;P&gt;When the client’s browser affirms that the SSL certificate is valid and authentic, it establishes the connection. But if the client cannot confirm the server’s originality through the Secure Socket Layer certificate, the certificate_verify_failed error will pop up. There are different reasons such as:-&lt;/P&gt;&lt;P&gt;1) Expired or Invalid SSL Certificate&lt;/P&gt;&lt;P&gt;2) The issue with the SSL Certificate Chain&lt;/P&gt;&lt;P&gt;3) Obsolete Python Default Certificates&lt;/P&gt;&lt;P&gt;As, their many ways to fix the error, you need to understand it in detail. I found the helpful resource guide:- &lt;A href="https://cheapsslweb.com/blog/ssl-certificate-verify-failed-error-in-python/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://cheapsslweb.com/blog/ssl-certificate-verify-failed-error-in-python/&lt;/A&gt; for the error that was being faced.&lt;/P&gt;&lt;P&gt;I hope it helps!&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 07:21:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/ssl-error-in-python/m-p/5429917#M4911</guid>
      <dc:creator>janki-p12</dc:creator>
      <dc:date>2025-05-15T07:21:26Z</dc:date>
    </item>
  </channel>
</rss>

