Code Monkey home page Code Monkey logo

Comments (1)

pquentin avatar pquentin commented on June 1, 2024

Hello! And sorry for the delay in getting back to you. Unfortunately I'm not reproducing your issue. Can you please mention the version of Elasticsearch, elasticsearch-py and elastic-transport-python, as well as your Python version?

Note that if you are using Python 3.10 and above, the Elasticsearch client is able to verify using any certificate in the chain, including the root certificate authority, but AsyncElasticsearch does not support that. So if you're for example using the fingerprint of the root certificate authority, it is expect that it works with Elasticsearch but not AsyncElasticsearch. To check that, you can give a different fingerprint to Elasticsearch, and it will report the certificates of the chain, like this (the formatting is mine):

elastic_transport.TlsError: TLS error caused by: TlsError(
    TLS error caused by: SSLError(
        Fingerprints did not match.
        Expected "fd6e9b0ef398bcd904c3b2ec167a7b0fda7201c903c53a6a6ae5d0414363ef65", got
        "dc179eb67a0d04ab6d635e4ff2ffb3c3150a3c589e2b8af7b71ca840f28f3f7b",
        "67add1166b020ae61b8f5fc96813c04c2aa589960796865572a3c7e737613dfd",
        "96bcec06264976f37460779acf28c5a7cfe8a3c0aae11a8ffcee05c0bddf08c6".
    )
)

And then you have to make sure to use the first certificate (dc179eb67a0d04ab6d635e4ff2ffb3c3150a3c589e2b8af7b71ca840f28f3f7b in this case) when using AsyncElasticsearch.

from elasticsearch-py.

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.