From 3f9a13ed6fcb53f3fee75bc7a23f7202d39154a4 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 18 Sep 2025 15:14:39 -0400 Subject: [PATCH] Ensure certfile is blanked before writing to it --- confluent_osdeploy/common/profile/scripts/setupssh | 1 + 1 file changed, 1 insertion(+) diff --git a/confluent_osdeploy/common/profile/scripts/setupssh b/confluent_osdeploy/common/profile/scripts/setupssh index 83c05fa1..cdea86b1 100644 --- a/confluent_osdeploy/common/profile/scripts/setupssh +++ b/confluent_osdeploy/common/profile/scripts/setupssh @@ -7,6 +7,7 @@ for pubkey in /etc/ssh/ssh_host*key.pub; do continue fi certfile=${pubkey/.pub/-cert.pub} + echo -n > $certfile confluentpython $confapiclient /confluent-api/self/sshcert $pubkey -o $certfile done if [ -d /etc/ssh/sshd_config.d/ -a ! -e /etc/ssh/sshd_config.d/90-confluent.conf ]; then