Code Monkey home page Code Monkey logo

Comments (6)

joowani avatar joowani commented on July 30, 2024

Hi cer1969,

It looks like your server does not have a valid SSL certificate installed.
I released python-arango 3.3.0, which now has a new argument check_cert.
You can set this field to False to bypass SSL verification:

client = ArangoClient(
    protocol="https", 
    host="www.test.com", 
    port=12345, 
    username="root", 
    password="password",
    enable_logging=True, 
    verify=True, 
    check_cert=False
)

Please upgrade python-arango, set the flag to False and try again.

Thanks.

from python-arango.

cer1969 avatar cer1969 commented on July 30, 2024

I'am using the web interface and the browser says the certificate is valid. I also checked here https://www.digicert.com/help/.

from python-arango.

joowani avatar joowani commented on July 30, 2024

Hi cer1969,

It could be that the requests library (which python-arango uses under the hood) cannot locate the certificate bundle to verify the the certificate of your server.

Could you try some of the solutions mentioned in http://stackoverflow.com/questions/10667960/python-requests-throwing-up-sslerror? Please note that the new parameter check_cert simply passes whatever value you specify to request library's verify parameters.

For example, it is possible that you don't have the certificate bundle installed at all which you could solve by something like: sudo apt-get install ca-certificates (ubuntu)

Let me know how that goes.
Thanks.

from python-arango.

cer1969 avatar cer1969 commented on July 30, 2024

I tried with check_cert="certificate.file" but I got the same error.
Probably a request,py problem.
When I do check_cert=False I understand the certificate is used but not
verified, so if I know the certificate is ok I can trust the connection is
secure?

2016-09-08 12:03 GMT-03:00 Joohwan Oh [email protected]:

Hi cer1969,

It could be that the requests library (which python-arango uses under the
hood) cannot locate the certificate bundle to verify the the certificate of
your server.

Could you try some of the solutions mentioned in http://stackoverflow.com/
questions/10667960/python-requests-throwing-up-sslerror? Please note that
the new parameter check_cert simply passes whatever value you specify to
request library's verify parameters.

For example, it is possible that you don't have the certificate bundle
installed at all which you could solve by something like: sudo apt-get
install ca-certificates (ubuntu)

Let me know how that goes.
Thanks.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#19 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANFidZkZ02d1jvGhR26ZMXJjBGI5JoL5ks5qoCPTgaJpZM4J27qm
.

from python-arango.

joowani avatar joowani commented on July 30, 2024

If verify if set to False, the certificate is not checked at all, which leaves you open to man-in-the-middle attacks. You would probably be fine going without this check if this is a small pet project that you are working on with ArangoDB. Ideally you want to fix the core problem. Have you tried this?

pip install certifi

from python-arango.

joowani avatar joowani commented on July 30, 2024

As this is not a problem with python-arango itself I will close this issue now.

from python-arango.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.