Git Product home page Git Product logo

Comments (5)

shreemaan-abhishek avatar shreemaan-abhishek commented on May 28, 2024

could you check the differences in the version of the http library? APISIX uses this: https://github.com/api7/lua-resty-http

from apisix.

pimg avatar pimg commented on May 28, 2024

Thank you @shreemaan-abhishek for your reply. The Lua plugin is mounted in the APISIX Docker container and executed from there. Looking at the Rockspect from APISIX 3.8 release it looks like the resty-http version is: api7-lua-resty-http = 0.2.2-0

https://github.com/apache/apisix/blob/release/3.8/apisix-master-0.rockspec#L38

from apisix.

shreemaan-abhishek avatar shreemaan-abhishek commented on May 28, 2024

yes, the api7-lua-resty-http is a fork of https://github.com/ledgetech/lua-resty-http and it has some missing features.

from apisix.

pimg avatar pimg commented on May 28, 2024

ok, but how can it be used to issue a mTLS request with APISIX? Does this differ from the upstream resty-http library, or does it contain a bug?

from apisix.

pimg avatar pimg commented on May 28, 2024

ok I found the issue. Indeed the API of the forked resty-http library differs from the upstream.

so instead of:

local ok, err = httpc:connect {
	ssl_client_cert = cert,
	ssl_client_priv_key = key,
}

The key material of the client should be provided as:

local ok, err = httpc:connect {
	ssl_cert = cert_in_pem_format,
	ssl_key = key_in_pem_format,
}

from apisix.

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.