docs: document how to retrieve peercert

This commit is contained in:
Zaiming (Stone) Shi 2023-09-29 10:33:11 +02:00
parent dc147fd310
commit c64e599e81
1 changed files with 2 additions and 0 deletions

View File

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