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
@@ -3123,6 +3133,80 @@ Returns `true` if table is an instance of `revoked`. Returns `false` otherwise.
3123
3133
3124
3134
[Back to TOC](#table-of-contents)
3125
3135
3136
+
## resty.openssl.ssl
3137
+
3138
+
Module to interact with SSL connection.
3139
+
3140
+
**This module is currently considered experimental.**
3141
+
3142
+
**Note: to use this module in production, user is encouraged to compile [lua-resty-openssl-aux-module](https://github.com/fffonion/lua-resty-openssl-aux-module).**
3143
+
3144
+
[Back to TOC](#table-of-contents)
3145
+
3146
+
### ssl.from_request
3147
+
3148
+
**syntax**: *sess, err = ssl.from_request()*
3149
+
3150
+
Wraps the `SSL*` instance from current downstream request.
3151
+
3152
+
[Back to TOC](#table-of-contents)
3153
+
3154
+
### ssl.from_socket
3155
+
3156
+
**syntax**: *sess, err = ssl.from_socket(sock)*
3157
+
3158
+
Wraps the `SSL*` instance from a TCP cosocket, the cosocket must have already
Return the whole peer certificate chain as a [x509.chain](#restyopensslx509chain) instance.
3178
+
Depending on the type of `ssl`, peer certificate means the server certificate on client side,
3179
+
or the client certificate on server side.
3180
+
3181
+
[Back to TOC](#table-of-contents)
3182
+
3183
+
## resty.openssl.ssl_ctx
3184
+
3185
+
Module to interact with SSL_CTX context.
3186
+
3187
+
**This module is currently considered experimental.**
3188
+
3189
+
**Note: to use this module in production, user is encouraged to compile [lua-resty-openssl-aux-module](https://github.com/fffonion/lua-resty-openssl-aux-module).**
3190
+
3191
+
[Back to TOC](#table-of-contents)
3192
+
3193
+
### ssl_ctx.from_request
3194
+
3195
+
**syntax**: *ctx, err = ssl_ctx.from_request()*
3196
+
3197
+
Wraps the `SSL_CTX*` instance from current downstream request.
0 commit comments