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

docs: document how to retrieve peercert

Zaiming (Stone) Shi 2 лет назад
Родитель
Сommit
c64e599e81
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      apps/emqx/src/emqx_channel.erl

+ 2 - 0
apps/emqx/src/emqx_channel.erl

@@ -1996,6 +1996,8 @@ trim_conninfo(ConnInfo) ->
             %% NOTE
             %% We remove the peercert because it duplicates what's stored in the socket,
             %% otherwise it wastes about 1KB per connection.
+            %% Retrieve with: esockd_transport:peercert(Socket).
+            %% Decode with APIs exported from esockd_peercert and esockd_ssl
             peercert
         ],
         ConnInfo