diff --git a/README.md b/README.md index 3e73281a..eaaf661d 100644 --- a/README.md +++ b/README.md @@ -1046,6 +1046,8 @@ const sql = For more information regarding `ssl` with `postgres`, check out the [Node.js documentation for tls](https://nodejs.org/dist/latest-v16.x/docs/api/tls.html#new-tlstlssocketsocket-options). +Set `sslnegotiation: 'direct'` to skip the PostgreSQL SSLRequest negotiation and start TLS directly with ALPN. + ### Multi-host connections - High Availability (HA) diff --git a/deno/README.md b/deno/README.md index ab3a9f4a..139c5e6e 100644 --- a/deno/README.md +++ b/deno/README.md @@ -1042,6 +1042,8 @@ const sql = For more information regarding `ssl` with `postgres`, check out the [Node.js documentation for tls](https://nodejs.org/dist/latest-v16.x/docs/api/tls.html#new-tlstlssocketsocket-options). +Set `sslnegotiation: 'direct'` to skip the PostgreSQL SSLRequest negotiation and start TLS directly with ALPN. + ### Multi-host connections - High Availability (HA) diff --git a/deno/types/index.d.ts b/deno/types/index.d.ts index 85112eda..6702b0dd 100644 --- a/deno/types/index.d.ts +++ b/deno/types/index.d.ts @@ -47,6 +47,11 @@ interface BaseOptions> { * @default false */ ssl: 'require' | 'allow' | 'prefer' | 'verify-full' | boolean | object; + /** + * SSL negotiation mode + * @default null + */ + sslnegotiation: 'direct' | null; /** * Max number of connections * @default 10 diff --git a/types/index.d.ts b/types/index.d.ts index 13c3432f..0a958de2 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -45,6 +45,11 @@ interface BaseOptions> { * @default false */ ssl: 'require' | 'allow' | 'prefer' | 'verify-full' | boolean | object; + /** + * SSL negotiation mode + * @default null + */ + sslnegotiation: 'direct' | null; /** * Max number of connections * @default 10