1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
Description: Fix FTBFS with OpenSSL 3.0
DH parameters needs to be minimum 512 bits. Test suite tries to generate 256
bits, so it fails. The patch changes this to 512. Thanks Kurt for the analyis
in the Debian bug report.
Author: Tobias Frost <tobi@debian.org>
Bug-Debian: https://bugs.debian.org/995660
Forwarded: no
Reviewed-by: <name and email of a reviewer, optional>
Last-Update: 2022-10-29 <YYYY-MM-DD, last update of the meta-information, optional>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/dbms/tests/clickhouse-test-server
+++ b/dbms/tests/clickhouse-test-server
@@ -69,7 +69,7 @@
PRIVATEKEY=`$CLICKHOUSE_EXTRACT_CONFIG --key=openSSL.server.privateKeyFile`
CERT=`$CLICKHOUSE_EXTRACT_CONFIG --key=openSSL.server.certificateFile`
# Do not generate in case broken extract-config
-[ -n "$DHPARAM" ] && openssl dhparam -out $DHPARAM 256
+[ -n "$DHPARAM" ] && openssl dhparam -out $DHPARAM 512
[ -n "$PRIVATEKEY" ] && [ -n "$CERT" ] && openssl req -subj "/CN=localhost" -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout $PRIVATEKEY -out $CERT
if [ "$TEST_GDB" ] || [ "$GDB" ]; then
|