Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

2.0.1: Add certificate verification to requests

See original GitHub issue

Describe the bug When creating a “gis” with ‘verify_cert’ to True, I am getting warnings from urllib3 to add certificate verification.

To Reproduce Steps to reproduce the behavior:

from arcgis.gis import GIS
ent_gis = GIS(portal_url, portal_username, portal_password, verify_cert=True, use_gen_token=True)


urllib3\ InsecureRequestWarning: Unverified HTTPS request is being made to host ''. Adding certificate verification is strongly advised. See:

Expected behavior No warning should appear out of the box and best security practice should be implemented. More info:

Platform (please complete the following information):

  • OS: Windows 10
  • Browser [e.g. chrome, safari]
  • Python API Version: 2.0.1

Thanks !

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

achapkowskicommented, Sep 28, 2022

We’ll take a look for the 2.1.0 release.

nanaeaubrycommented, Oct 6, 2022

This has been fixed and will be in the next release

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Requests throwing SSLError - Stack Overflow
Requests can verify SSL certificates for HTTPS requests, just like a web browser. To check a host's SSL certificate, you can use the...
Read more >
SSL Certificate Verification - Python requests - GeeksforGeeks
Requests verifies SSL certificates for HTTPS requests, just like a web browser. SSL Certificates are small data files that digitally bind a ...
Read more >
requests 2.0.1 - PyPI
SSL CERT VERIFICATION ! Release of Cerifi: Mozilla's cert list. New 'verify' argument for SSL requests. Urllib3 update.
Read more >
Encryption and Authentication using SSL
The first step of deploying HTTPS is to generate the key and the certificate for each machine in the cluster. You can use...
Read more >
Certificate verification in Python standard library HTTP clients
The ssl._https_verify_certificates() function can be used to enable or disable certificate verification at runtime. This API can be used by ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found