forked from ClickHouse/clickhouse-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented connecting to ClickHouse server over TLS
- 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.
- Loading branch information
Showing
18 changed files
with
872 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Linux-ssl | ||
# Almost the same as regular Linux builds, BUT with enabled SSL support, requires OpenSSL installed | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build-and-test: | ||
uses: Enmk/clickhouse-cpp/.github/workflows/linux.yml@master | ||
with: | ||
extra_cmake_flags: -DWITH_OPENSSL=ON | ||
extra_install: libssl1.1 libssl-dev | ||
gtest_args: --gtest_filter="-*LocalhostTLS*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.