Skip to content

Commit

Permalink
fix ssl server/certificate authentication teste for RHEL
Browse files Browse the repository at this point in the history
  • Loading branch information
strtgbb committed Nov 13, 2024
1 parent 7becd21 commit 5597eef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ssl_server/tests/certificate_authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ def feature(self, node="clickhouse1"):
f"openssl req -newkey rsa:4096 -x509 -days 3650 -nodes -batch -keyout ca-key.pem -out ca-cert.pem -subj '/C=AU/ST=Some-State/O=Internet Widgits Pty Ltd/CN=ca'"
)

with And("I append the server certificate to the CA certificate"):
# This is required on rhel-family systems
node.command("cat /etc/clickhouse-server/server.crt >> ca-cert.pem")

with And("I set the caConfig"):
entries = define(
"SSL settings",
Expand Down

0 comments on commit 5597eef

Please sign in to comment.