Coder Social home page Coder Social logo

SSL certification error about liboai HOT 5 CLOSED

d7ead avatar d7ead commented on August 24, 2024
SSL certification error

from liboai.

Comments (5)

asnagni avatar asnagni commented on August 24, 2024

Hi guys,
I have an additional information. I downloaded the single header file library "openai-cpp" and it is working. I don't have the ssl certificate issue. Which may indicate that the issue is with liboai.
I have and additional information that may help find the issue, I'm using curl-8.1.2

Thank you,
Stay safe

from liboai.

D7EAD avatar D7EAD commented on August 24, 2024

Hi,

Sorry for the late response.

In liboai's core network back-end source code, I do not force the library to verify certificate of peers. The default for this setting, according to cURL, is enabled - so peer certificates will be verified (see here).

I can easily add an option to enable or disable this, and this will fix your issue. I can easily do this in due time, and once done, I will update here.

Best.

from liboai.

asnagni avatar asnagni commented on August 24, 2024

from liboai.

D7EAD avatar D7EAD commented on August 24, 2024

Hi,

I have released a quick-fix PR (#52) for this issue. Please update the file changed and use the new pre-processor definition described in the PR, as well as the debug pre-processor definition LIBOAI_DEBUG to ensure the peer verification is being disabled on your end (see line 2 in the terminal output below).

image

Let me know the results and, if successful, I will push to main branch.

Best.

from liboai.

asnagni avatar asnagni commented on August 24, 2024

from liboai.

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.