Update the peer_cert_as_username conf desc

This commit is contained in:
HuangDan 2018-08-29 16:24:01 +08:00
parent 9b06589eab
commit 53d7d0a9d4
2 changed files with 4 additions and 5 deletions

View File

@ -752,8 +752,8 @@ listener.tcp.external.access.1 = allow all
## Enable the option for X.509 certificate based authentication.
## EMQX will use the common name of certificate as MQTT username.
##
## Value: boolean
## listener.tcp.external.peer_cert_as_username = true
## Value: cn | dn
## listener.tcp.external.peer_cert_as_username = cn
## The TCP backlog defines the maximum length that the queue of pending
## connections can grow to.
@ -1096,7 +1096,7 @@ listener.ssl.external.ciphers = ECDHE-ECDSA-AES256-GCM-SHA384,ECDHE-RSA-AES256-G
## Use the CN field from the client certificate as a username.
## Notice that 'verify' should be set as 'verify_peer'.
##
## Value: boolean
## Value: cn | en
## listener.ssl.external.peer_cert_as_username = cn
## TCP backlog for the SSL connection.

View File

@ -857,8 +857,7 @@ end}.
]}.
{mapping, "listener.tcp.$name.peer_cert_as_username", "emqx.listeners", [
{default, false},
{datatype, {enum, [true, false]}}
{datatype, {enum, [cn, dn]}}
]}.
{mapping, "listener.tcp.$name.backlog", "emqx.listeners", [