Просмотр исходного кода

Update the peer_cert_as_username conf desc

HuangDan 7 лет назад
Родитель
Сommit
53d7d0a9d4
2 измененных файлов с 4 добавлено и 5 удалено
  1. 3 3
      etc/emqx.conf
  2. 1 2
      priv/emqx.schema

+ 3 - 3
etc/emqx.conf

@@ -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.

+ 1 - 2
priv/emqx.schema

@@ -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", [