question-mark
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.

Python API SSL Verification Failed

See original GitHub issue

I’m trying make a script that calls the grr_client_api, but the hostname that I’m using does not match the name of the server. This is necessary because the server is using single sign on.

I’m trying to use something similar to what the python request system allows you to do. Which is: requests.get(‘https://example.com’, verify=False)

Here is an example of the script I’m trying to run:

# Test

#!/usr/bin/env python

from grr_api_client import api

grrapi = api.InitHttp(api_endpoint = "https://127.0.0.1",auth = ("usr", "pwd"), verify = False)

search_result = grrapi.SearchClients("*")

result = {}

print (result)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

1reaction
mbushkovcommented, Jun 26, 2018

Hi! I’ve made a minor release of grr-api-client PIP package (https://pypi.org/project/grr-api-client/, version 3.2.3.post1).

api.InitHttp() now has “verify”, “proxies” and “cert” arguments that get forwarded to the underlying requests library (see https://github.com/google/grr/blob/master/api_client/python/grr_api_client/api.py#L57).

Setting “verify” to False will turn off SSL certificates checking.

1reaction
mbushkovcommented, Jun 25, 2018

Quick note: GRR 3.2.3.0 was just released, but corresponding grr-api-client doesn’t have necessary changes yet. I’m working on it at the moment, will cut a new minor release for the grr-api-client when I’m done.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - urllib and "SSL: CERTIFICATE_VERIFY_FAILED" Error
If you have installed Python 3.6 on OSX and are getting the "SSL: CERTIFICATE_VERIFY_FAILED" error when trying to connect to an https:// site,...
Read more >
How to Fix SSL: CERTIFICATE_VERIFY_FAILED Error In ...
After thorough vetting, a CA will issue the SSL certificate, which must be verified in your system before installing Python packages. If the ......
Read more >
SSL: CERTIFICATE_VERIFY_FAILED Error in Python (2022)
In this video I will be showing you how you can solve the SSL : CERTIFICATE_VERIFY_FAILED Error in any Python version.
Read more >
Fixing your SSL Verify Errors in Python - Level Up Coding
How to fix your SSL Errors: ... Gottem, that is all you need to do aside from using verify=True in your request. The...
Read more >
Python script fails with: [SSL: CERTIFICATE_VERIFY_FAILED]
I am NOT sure if you still need answer but I found an answer just now. Just install "python-certifi-win32" and boom, certification error...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found