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

[bitnami/kafka] change zookeeper keystore pem location #46901

Merged
merged 6 commits into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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 @@ -772,8 +772,8 @@ kafka_zookeeper_configure_tls() {
elif [[ "$KAFKA_ZOOKEEPER_TLS_TYPE" = "PEM" ]] && [[ -f "$KAFKA_CERTS_DIR"/zookeeper.keystore.pem ]] && [[ -f "$KAFKA_CERTS_DIR"/zookeeper.keystore.key ]]; then
# Concatenating private key into public certificate file
# This is needed to load keystore from location using PEM
cat "$KAFKA_CERTS_DIR"/zookeeper.keystore.key >>"$KAFKA_CERTS_DIR"/zookeeper.keystore.pem
keystore_location="${KAFKA_CERTS_DIR}/zookeeper.keystore.pem"
cat "$KAFKA_CERTS_DIR"/zookeeper.keystore.pem "$KAFKA_CERTS_DIR"/zookeeper.keystore.key > "$KAFKA_CERTS_DIR"/zookeeper-keypair.pem
keystore_location="$KAFKA_CERTS_DIR"/zookeeper-keypair.pem
toondaey marked this conversation as resolved.
Show resolved Hide resolved
fi

kafka_server_conf_set "zookeeper.clientCnxnSocket" "org.apache.zookeeper.ClientCnxnSocketNetty"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -772,8 +772,8 @@ kafka_zookeeper_configure_tls() {
elif [[ "$KAFKA_ZOOKEEPER_TLS_TYPE" = "PEM" ]] && [[ -f "$KAFKA_CERTS_DIR"/zookeeper.keystore.pem ]] && [[ -f "$KAFKA_CERTS_DIR"/zookeeper.keystore.key ]]; then
# Concatenating private key into public certificate file
# This is needed to load keystore from location using PEM
cat "$KAFKA_CERTS_DIR"/zookeeper.keystore.key >>"$KAFKA_CERTS_DIR"/zookeeper.keystore.pem
keystore_location="${KAFKA_CERTS_DIR}/zookeeper.keystore.pem"
cat "$KAFKA_CERTS_DIR"/zookeeper.keystore.pem "$KAFKA_CERTS_DIR"/zookeeper.keystore.key > "$KAFKA_CERTS_DIR"/zookeeper-keypair.pem
keystore_location="$KAFKA_CERTS_DIR"/zookeeper-keypair.pem
fi

kafka_server_conf_set "zookeeper.clientCnxnSocket" "org.apache.zookeeper.ClientCnxnSocketNetty"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -772,8 +772,8 @@ kafka_zookeeper_configure_tls() {
elif [[ "$KAFKA_ZOOKEEPER_TLS_TYPE" = "PEM" ]] && [[ -f "$KAFKA_CERTS_DIR"/zookeeper.keystore.pem ]] && [[ -f "$KAFKA_CERTS_DIR"/zookeeper.keystore.key ]]; then
# Concatenating private key into public certificate file
# This is needed to load keystore from location using PEM
cat "$KAFKA_CERTS_DIR"/zookeeper.keystore.key >>"$KAFKA_CERTS_DIR"/zookeeper.keystore.pem
keystore_location="${KAFKA_CERTS_DIR}/zookeeper.keystore.pem"
cat "$KAFKA_CERTS_DIR"/zookeeper.keystore.pem "$KAFKA_CERTS_DIR"/zookeeper.keystore.key > "$KAFKA_CERTS_DIR"/zookeeper-keypair.pem
keystore_location="$KAFKA_CERTS_DIR"/zookeeper-keypair.pem
fi

kafka_server_conf_set "zookeeper.clientCnxnSocket" "org.apache.zookeeper.ClientCnxnSocketNetty"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -772,8 +772,8 @@ kafka_zookeeper_configure_tls() {
elif [[ "$KAFKA_ZOOKEEPER_TLS_TYPE" = "PEM" ]] && [[ -f "$KAFKA_CERTS_DIR"/zookeeper.keystore.pem ]] && [[ -f "$KAFKA_CERTS_DIR"/zookeeper.keystore.key ]]; then
# Concatenating private key into public certificate file
# This is needed to load keystore from location using PEM
cat "$KAFKA_CERTS_DIR"/zookeeper.keystore.key >>"$KAFKA_CERTS_DIR"/zookeeper.keystore.pem
keystore_location="${KAFKA_CERTS_DIR}/zookeeper.keystore.pem"
cat "$KAFKA_CERTS_DIR"/zookeeper.keystore.pem "$KAFKA_CERTS_DIR"/zookeeper.keystore.key > "$KAFKA_CERTS_DIR"/zookeeper-keypair.pem
keystore_location="$KAFKA_CERTS_DIR"/zookeeper-keypair.pem
fi

kafka_server_conf_set "zookeeper.clientCnxnSocket" "org.apache.zookeeper.ClientCnxnSocketNetty"
Expand Down
Loading