Skip to content

Conversation

@Enmk
Copy link
Contributor

@Enmk Enmk commented Oct 25, 2021

Using OpenSSL

  • set -DWITH_OPENSSL:BOOL=ON to enable
  • can use non-system OpenSSL with -DOPENSSL_ROOT_DIR=<path-to-OpenSSL>

Client behavior is customizable with ClientOptions::SSLOptions

  • min/max protocol versions
  • SNI extension ON\OFF
  • CA files or directory
  • other tweaks available via SSL_CTX_set_options
  • OR provide pre-configured SSL_CTX with any customizations.

Tests to verify TLS connection to an external host.
Tests to verify TLS connection to locally started CH with custom CA (CA and certificate files not included)

- using OpenSSL
  - set `-DWITH_OPENSSL:BOOL=ON` to enable
  - can use non-system OpenSSL with `-DOPENSSL_ROOT_DIR=<path-to-OpenSSL>`
- Client behavior is customizable with `ClientOptions::SSLOptions`
  - min/max protocol versions
  - SNI extension ON\OFF
  - CA files or directory
  - other tweaks available via `SSL_CTX_set_options`
  - OR provide pre-configured `SSL_CTX` with any customizations.

Tests to verify TLS connection to an external host.
Tests to verify TLS connection to locally started CH.
Copy link
Contributor

@traceon traceon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See inline comments.

@traceon traceon self-assigned this Nov 3, 2021
@Enmk Enmk force-pushed the openssl branch 2 times, most recently from 3a68389 to e06893b Compare November 8, 2021 19:53
Copy link
Contributor

@traceon traceon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left inline comments.

minor renaming, comments and other grooming
@traceon traceon merged commit 5cfda7f into ClickHouse:master Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants