Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the CA not found error message #10669

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ for CRT in /opt/kafka/cluster-ca-certs/*.crt; do
done
echo "Preparing truststore for replication listener is complete"

echo "Looking for the right CA"
echo "Looking for the CA matching the server certificate"
CA=$(find_ca /opt/kafka/cluster-ca-certs "/opt/kafka/broker-certs/$HOSTNAME.crt")

if [ ! -f "$CA" ]; then
echo "No CA found. Thus exiting."
echo "No CA matching the server certificate found. This process will exit with failure."
exit 1
fi
echo "Found the right CA: $CA"
echo "CA matching the server certificate found: $CA"

echo "Preparing keystore for replication and clienttls listener"
STORE=/tmp/kafka/cluster.keystore.p12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ for CRT in /opt/kafka/cluster-ca-certs/*.crt; do
done
echo "Preparing truststore is complete"

echo "Looking for the right CA"
echo "Looking for the CA matching the server certificate"
CA=$(find_ca "/opt/kafka/cluster-ca-certs" "/opt/kafka/zookeeper-node-certs/$HOSTNAME.crt")

if [ ! -f "$CA" ]; then
echo "No CA found. Thus exiting."
echo "No CA matching the server certificate found. This process will exit with failure."
exit 1
fi
echo "Found the right CA: $CA"

echo "CA matching the server certificate found: $CA"

echo "Preparing keystore for client and quorum listeners"
STORE=/tmp/zookeeper/cluster.keystore.p12
Expand Down
Loading