GithubHelp home page GithubHelp logo

SSL allow beast option? about go-curl HOT 12 CLOSED

andelf avatar andelf commented on May 20, 2024
SSL allow beast option?

from go-curl.

Comments (12)

andelf avatar andelf commented on May 20, 2024

in https://github.com/bagder/curl/blob/7fef4016def79e35ef6194e9a44ef90075f84348/src/tool_operate.c#L1308

  if(config->ssl_allow_beast)
          my_setopt(curl, CURLOPT_SSL_OPTIONS, (long)CURLSSLOPT_ALLOW_BEAST);

in curl.h

#define CURLOPT_SSLKEYPASSWD CURLOPT_KEYPASSWD

in curl.h

#define CURLSSLOPT_ALLOW_BEAST (1<<0)

so
maybe easy.Setopt(curl.OPT_KEYPASSWD, 1) works?

from go-curl.

andelf avatar andelf commented on May 20, 2024

If it does works, please let me know. I'll add the missing symbols.

from go-curl.

ottob avatar ottob commented on May 20, 2024

I'm not sure I understand. Would using easy.Setopt(curl.OPT_KEYPASSWD, 1) in my code enable ssl allow beast?

from go-curl.

andelf avatar andelf commented on May 20, 2024

Yes. In curl command line tool, --ssl-allow-beast means that.
follow the #defines, it means easy.Setopt(curl.OPT_KEYPASSWD, 1) in go-curl

from go-curl.

ottob avatar ottob commented on May 20, 2024

Are you sure?
OPT_KEYPASSWD // password for the SSL or SSH private key. string. I don't see how this has anything to do with the CURLOPT_SSL_OPTIONS that is set in curl when you enable allow beast.

from go-curl.

andelf avatar andelf commented on May 20, 2024

Oh sorry, I made a mistake. just ignore what I said above.
I'll fix these missing options soon.

from go-curl.

andelf avatar andelf commented on May 20, 2024

please update go-curl to newest and try:
easy.Setopt(curl.OPT_SSL_OPTIONS, curl.SSLOPT_ALLOW_BEAST)

from go-curl.

ottob avatar ottob commented on May 20, 2024

I tried it and still cannot connect to the server (maybe ssl allow beast isn't the solution to my problem though).

Is there any way that I can verify that ssl allow beast is actually enabled? Verbose logging?

from go-curl.

andelf avatar andelf commented on May 20, 2024

maybe your can try ssl allow beast option with curl command line tool, to see if it works.

from go-curl.

ottob avatar ottob commented on May 20, 2024

I tried it now and it doesn't make any difference. So I guess the problem is elsewhere. Thanks for helping me out and adding the option though. Maybe somebody else will find it useful :)

from go-curl.

ottob avatar ottob commented on May 20, 2024

With some more research it seems like I was bitten by this bug this.

So workaround for me was easy.Setopt(curl.OPT_SSLVERSION, 1)

from go-curl.

andelf avatar andelf commented on May 20, 2024

:)

from go-curl.

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.