You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.markdown
+13-2
Original file line number
Diff line number
Diff line change
@@ -927,7 +927,6 @@ TODO
927
927
* add `ignore_resp_headers`, `ignore_resp_body`, and `ignore_resp` options to [ngx.location.capture](#ngxlocationcapture) and [ngx.location.capture_multi](#ngxlocationcapture_multi) methods, to allow micro performance tuning on the user side.
928
928
* add automatic Lua code time slicing support by yielding and resuming the Lua VM actively via Lua's debug hooks.
929
929
* add `stat` mode similar to [mod_lua](https://httpd.apache.org/docs/trunk/mod/mod_lua.html).
930
-
* cosocket: add client SSL certificate support.
931
930
932
931
[Back to TOC](#table-of-contents)
933
932
@@ -7346,7 +7345,7 @@ This method was first introduced in the `v0.5.0rc1` release.
@@ -7382,6 +7381,18 @@ to validate the server name in the server certificate.
7382
7381
The optional `send_status_req` argument takes a boolean that controls whether to send
7383
7382
the OCSP status request in the SSL handshake request (which is for requesting OCSP stapling).
7384
7383
7384
+
An optional Lua table can be specified as the last argument to this method to specify various handshake options:
7385
+
7386
+
*`client_cert` specify a client certificate chain cdata object that will be used while handshaking with
7387
+
remote server. These objects can be created using [ngx.ssl.parse\_pem\_cert](https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/ssl.md#parse_pem_cert)
7388
+
function provided by lua-resty-core. Note that specifying the `client_cert` option requires
7389
+
corresponding `client_priv_key` be provided too. See below.
7390
+
*`client_priv_key` specify a private key corresponds to the `client_cert` option above.
7391
+
These objects can be created using [ngx.ssl.parse\_pem\_priv\_key](https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/ssl.md#parse_pem_priv_key)
7392
+
function provided by lua-resty-core.
7393
+
7394
+
The support for the options table argument was first introduced in the v0.10.16 release.
7395
+
7385
7396
For connections that have already done SSL/TLS handshake, this method returns
0 commit comments