Преглед на файлове

Update the peer_cert_as_username conf desc

HuangDan преди 7 години
родител
ревизия
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.
 ## Enable the option for X.509 certificate based authentication.
 ## EMQX will use the common name of certificate as MQTT username.
 ## 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
 ## The TCP backlog defines the maximum length that the queue of pending
 ## connections can grow to.
 ## 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.
 ## Use the CN field from the client certificate as a username.
 ## Notice that 'verify' should be set as 'verify_peer'.
 ## Notice that 'verify' should be set as 'verify_peer'.
 ##
 ##
-## Value: boolean
+## Value: cn | en
 ## listener.ssl.external.peer_cert_as_username = cn
 ## listener.ssl.external.peer_cert_as_username = cn
 
 
 ## TCP backlog for the SSL connection.
 ## 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", [
 {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", [
 {mapping, "listener.tcp.$name.backlog", "emqx.listeners", [