Giter Club home page Giter Club logo

Comments (8)

antirek avatar antirek commented on July 24, 2024 2

Please, do release 0.6-2 with SNI support.

from luasec.

TomasB avatar TomasB commented on July 24, 2024 1

for now, we are applying the following patch to /usr/local/share/lua/5.2/ssl/https.lua:

*** original
--- modified
@@ -89,6 +89,7 @@
       function conn:connect(host, port)
          try(self.sock:connect(host, port))
          self.sock = try(ssl.wrap(self.sock, params))
+         self.sock:sni(host)
          try(self.sock:dohandshake())
          reg(self, getmetatable(self.sock))
          return 1

from luasec.

brunoos avatar brunoos commented on July 24, 2024

Now, https module is not sending SNI information.
We need to modify and include this feature.

from luasec.

Alloyed avatar Alloyed commented on July 24, 2024

Is this still the case as of 0.6?
Testing against my cloudflare site:

LuaJIT 2.1.0-beta2 -- Copyright (C) 2005-2016 Mike Pall. http://luajit.org/
JIT: ON SSE2 SSE3 SSE4.1 fold cse dce fwd dse narrow loop abc sink fuse
> print(require('ssl.https').request("https://alloyed.me"))
nil tlsv1 alert internal error  nil nil

from luasec.

brunoos avatar brunoos commented on July 24, 2024

Yes.

from luasec.

greatwolf avatar greatwolf commented on July 24, 2024

Any chance we can get this PR #89 merged into master?

from luasec.

brunoos avatar brunoos commented on July 24, 2024

Merged.

from luasec.

greatwolf avatar greatwolf commented on July 24, 2024

awesome, thank you!

from luasec.

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.