Skip to content

Latest commit

 

History

History
35 lines (19 loc) · 971 Bytes

lua_ssl_trusted_certificate.md

File metadata and controls

35 lines (19 loc) · 971 Bytes

lua_ssl_trusted_certificate

语法: lua_ssl_trusted_certificate <file>

默认: no

环境: http, server, location

指定一个 PEM 格式信任 CA 证书文件,在tcpsock:sslhandshake方法里验证 SSL/TLS 服务的证书。

该指令是在v0.9.11版本首次引入的。

也可以看看 lua_ssl_verify_depth.

返回目录

English source:

lua_ssl_trusted_certificate

syntax: lua_ssl_trusted_certificate <file>

default: no

context: http, server, location

Specifies a file path with trusted CA certificates in the PEM format used to verify the certificate of the SSL/TLS server in the tcpsock:sslhandshake method.

This directive was first introduced in the v0.9.11 release.

See also lua_ssl_verify_depth.

Back to TOC