Comments (5)
could you check the differences in the version of the http library? APISIX uses this: https://github.com/api7/lua-resty-http
from apisix.
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.
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.
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.
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)
- proposal: allow proxy_next_upstream directive HOT 2
- help request: how to configure redirect URI in openid-connect HOT 9
- help request: where can we find resty.apisix.{x} module HOT 5
- help request: Questions Regarding the `least_conn` Load Balancer HOT 1
- help request: Based on the JAVA language, how do plug-ins make high availability HOT 8
- help request: regex_uri in proxy-rewrite is not redirecting to sub-path HOT 6
- docs: change the `workflow` plugin category from General to Traffic Management HOT 2
- help request: what is A6 module in apisix? HOT 5
- Request Header Fields Too Large. StatusCode: 431
- help request: wsl2 ubuntu20.04.6 LTS start proxy-rewrite 502 Bad Gateway HOT 1
- docs: proxy-rewrite plugin http://iresty.com/test/home.html 404 HOT 4
- help request: Is there a general way to detect if a plugin is enabled? HOT 1
- help request: Are all these plugins enabled by default? HOT 2
- bug: access.log oom HOT 3
- help request: Multiple mysql proxy stream_proxy HOT 4
- Is there a case of using Apisix SaaS to transform individual software? Is it feasible? HOT 3
- bug: How to correctly create a consumer with openid-connect? HOT 12
- bug: Upstream HealthCheck Issue - Unhealthy Upstream doesn't be excluded temporarily HOT 7
- Error in Creating Apisix Consumer with Vault Integration - Invalid Plugin Configuration for jwt-authbug: HOT 7
- Unable to validate audience claim using openid-connect HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apisix.