Module Ffi.Ssl_ctx
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val create_exn : Version.t -> tInitialize a new SSL context, out of which all SSL connections are allocated.
val set_options : t -> Opt.t list -> unitSet options on the SSL context, see
Optfor available options. Currently used for disabling protocol versions.
val load_verify_locations : ?ca_file:string -> ?ca_path:string -> t -> unit Core.Or_error.t Async.Deferred.tSpecifies the locations for the context, at which CA certificates for verification purposes are located. The certificates available via
ca_fileandca_pathare trusted.If
ca_fileis notNone, it points to a file of CA certificates in PEM format. It may have more than one certificate.If
ca_pathis notNone, it points to a directory containing CA certificates in PEM format. The files each contain one CA certificate. The certificates inca_pathare only looked up lazily, not eagarly.Prepare the directory
/some/where/certscontaining several CA certificates for use asca_path:{ cd /some/where/certs c_rehash . }If both
ca_fileandca_pathare specified, the certificates inca_filewill be searched before the certificates inca_path.If this function is not used,
set_default_verify_pathsshould be called to use OpenSSL's compiled-in defaults.
val set_default_verify_paths : t -> unitTell OpenSSL to use its compiled-in defaults for locating CA certificates for verification purposes. This should be called if
load_verify_locationsis not used.
val set_session_id_context : t -> string -> unitSet context within which session can be reused, e.g. the name of the application and/or the hostname and/or service name, etc. Server side only.
https://www.openssl.org/docs/manmaster/ssl/SSL_CTX_set_session_id_context.html