laz-xyr commented on issue #12641: URL: https://github.com/apache/apisix/issues/12641#issuecomment-3709101454
@YapWC > it suppose to be able to perform mTLS as the `resty.healtcheck` lib actual do support mTLS Yes. Just like the README.md of the `resty.healtcheck` library, it supports mTLS, but the apisix-nginx-module library breaks the official `tcpsock:sslhandshake` function And made `sslhandshake` point to its custom `tlshandshake` function . https://github.com/api7/apisix-nginx-module/blob/0327bd759eeab36f2fa20b1f8b80eaf1239c1298/patch/1.27.1.1/lua-resty-core-tlshandshake.patch#L299-L335 The mTLS certificate of the tlshandshake function requires `opts` parameter passing instead of tcpsock:setclientcert. like `TEST 4` This causes the `healtcheck` library to be unable to use the passed certificate. We need to make `resty.healtcheck` library use tlshandshake function first, just like [resty.http](https://github.com/api7/lua-resty-http/blob/f2a90e38c7b7bac47cba2d08fcdeec351683c596/lib/resty/http_connect.lua#L237C9-L250) @Baoyuantop i can commit pr to api7's `resty.healtcheck` library ? Only in this way can the `create_checker` function add the mTLS function -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
