From 112161f7e56d56fdedccdcc98544d8dcac131205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Fri, 17 May 2024 16:10:49 +0200 Subject: [PATCH] Update lib/postgrex.ex Co-authored-by: Bram Verburg --- lib/postgrex.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/postgrex.ex b/lib/postgrex.ex index 13cd366f..dc5ddf3a 100644 --- a/lib/postgrex.ex +++ b/lib/postgrex.ex @@ -117,9 +117,9 @@ defmodule Postgrex do * `:idle_interval` - Ping connections after a period of inactivity in milliseconds. Defaults to 1000ms; - * `:ssl` - Enables SSL. Setting it to `true` enables SSL without host verification, + * `:ssl` - Enables SSL. Setting it to `true` enables SSL without server certificate verification, which emits a warning. Instead, prefer to set it to a keyword list, with either - `:cacerts` or `:cacertfile` pointing to the server certificate, to enable hostname + `:cacerts` or `:cacertfile` set to a CA trust store, to enable server certificate verification. Defaults to `false`; * `:socket_options` - Options to be given to the underlying socket