Implement mTLS authentication between client and server

This commit is contained in:
2025-02-23 01:32:59 +00:00
parent 83ab6f7a20
commit ebf9afb4e1
9 changed files with 166 additions and 43 deletions

View File

@@ -8,7 +8,8 @@
start(_StartType, _StartArgs) ->
Port = application:get_env(study_system_server, port, 12888),
proto_sup:start_link(Port).
{ok, CertDir} = application:get_env(study_system_server, cert_dir),
proto_sup:start_link(Port, CertDir).
stop(_State) ->
ok.