Securing RPC by SSL
The following configuration objects allow it to encapsulate a stream with SSL. Note that this is only possible with stream sockets.
SSL is only supported for the new Rpc_client.create2 interface.
If you are using ocamlrpcgen look for the generated
create_client2 functions.
Use `Socket(Rpc.Tcp, connector, (Rpc_ssl.ssl_client_socket_config ctx))
as mode2 argument for the create2 function. The connector can
be any supported connector. Pass the SSL context as ctx.
SSL configuration class for clients
SSL configuration object for clients
SSL is only supported for the new Rpc_server.create2 interface.
If you are using ocamlrpcgen new-style functions are generated
when you pass the -srv2 argument.
Use `Socket(Rpc.Tcp, connector, (Rpc_ssl.ssl_server_socket_config ctx))
as mode2 argument for the create2 function. The connector can
be any supported connector. Pass the SSL context as ctx.
SSL configuration class for servers
SSL configuration object for servers