From: Gerd S. <in...@ge...> - 2011-08-26 16:24:43
|
Am Freitag, den 26.08.2011, 15:11 +0100 schrieb Theodore Hong: > Hi, I'm glad to see that ocamlnet now supports HTTPS. Is it possible > to use client certificates with Https_client? I could only find > documentation for connections without user certificates. This is possible. The trick is to configure the SSL context accordingly. For example, to add a client certificate to ctx use Ssl.use_certificate ctx "certificate.pem" "certificate.key" where the latter two arguments are file names. There are a few more functions for client certificates in the Ssl module, see there for docs. Gerd > > Thanks, > Theo > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Ocamlnet-devel mailing list > Oca...@li... > https://lists.sourceforge.net/lists/listinfo/ocamlnet-devel > -- ------------------------------------------------------------ Gerd Stolpmann, Darmstadt, Germany ge...@ge... Creator of GODI and camlcity.org. Contact details: http://www.camlcity.org/contact.html Company homepage: http://www.gerd-stolpmann.de *** Searching for new projects! Need consulting for system *** programming in Ocaml? Gerd Stolpmann can help you. ------------------------------------------------------------ |