Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL certificate verify failed #531

Closed
sidraaleem-eaton opened this issue Sep 30, 2022 · 5 comments · Fixed by #568
Closed

SSL certificate verify failed #531

sidraaleem-eaton opened this issue Sep 30, 2022 · 5 comments · Fixed by #568
Labels
question Further information is requested

Comments

@sidraaleem-eaton
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@sidraaleem-eaton
Copy link
Author

sidraaleem-eaton commented Sep 30, 2022

I am trying to use msticpy.vis.timeline. However, I am having the following error:

from msticpy.vis.timeline import display_timeline

ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)

@petebryan
Copy link
Contributor

Hi @sidraaleem-eaton I am having trouble replicating this issue.
Can you please provide details of what environment you are running this code in?

@petebryan petebryan added the question Further information is requested label Oct 3, 2022
@ianhelle
Copy link
Contributor

The only thing I can think can be causing this is fetching the Bokeh JS libraries. There should be no network/https access happening otherwise during import.
I think if you are behind a corporate firewall/proxy this could be the cause - the firewall is proxying the TLS traffic and returning its (self-signed) cert to Python. Since Python doesn't have this cert in its root store the https connection is failing.
Here's a discussion I found and links to ways to fix it by importing the cert into your Python cert store.
os/slacker#148 (comment)

@gkennos
Copy link

gkennos commented Oct 23, 2022

There is definitely network access during import (working in a restricted environment myself at the moment). Not sure if this is the same root cause of the above, as my error is not certificate-related, rather a total connection error, but also happening at import time. It is caused by this line in context/ip_utils.py that is triggered on import.

_ASNS = httpx.get("https://bgp.potaroo.net/cidr/autnums.html")

@ianhelle
Copy link
Contributor

We should fix that import-time network fetch.
I've submitted a PR for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants