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

"The tool to create the certificates does not exist in any bucket" #1142

Open
plkordix opened this issue Dec 5, 2023 · 5 comments
Open

"The tool to create the certificates does not exist in any bucket" #1142

plkordix opened this issue Dec 5, 2023 · 5 comments

Comments

@plkordix
Copy link

plkordix commented Dec 5, 2023

Hello,

behind a HTTP proxy the code line of the wazuh certs generator entrypoint
CERT_TOOL_PACKAGES=$(curl --silent -I $PACKAGES_URL$CERT_TOOL | grep -E "^HTTP" | awk '{print $2}')
returns the text "200\n200", which does not match the if condition below, resulting in an error.

@am9zZWY
Copy link

am9zZWY commented Dec 29, 2023

I've faced the same problem which is caused by indexer-cert-creator/config/entrypoint.sh. To solve it, I used another way of checking if the file exists:

# code from https://superuser.com/a/442395
CERT_TOOL_PACKAGES=$(curl -s -o /dev/null -w "%{http_code}" $PACKAGES_URL$CERT_TOOL)
...

The code is from: https://superuser.com/a/442395

@k0286
Copy link

k0286 commented Jan 22, 2024

I've faced the same problem which is caused by indexer-cert-creator/config/entrypoint.sh. To solve it, I used another way of checking if the file exists:

# code from https://superuser.com/a/442395
CERT_TOOL_PACKAGES=$(curl -s -o /dev/null -w "%{http_code}" $PACKAGES_URL$CERT_TOOL)
...

The code is from: https://superuser.com/a/442395

Same problem here, when executing docker-compose -f generate-indexer-certs.yml run --rm generator.

The workaround is that enter into the container and modify the CERT_TOOL_PACKAGES in the entrypoint.sh like @am9zZWY described

@daniejstriata
Copy link

daniejstriata commented Feb 1, 2024

I had to restart the docker service and rerun the command to generate the certs.

@wissamg
Copy link

wissamg commented Apr 24, 2024

runs docker run -it --rm --entrypoint /bin/bash -v ./config/wazuh_indexer_ssl_certs/:/certificates/ -v ./config/certs.yml:/config/certs.yml wazuh/wazuh-certs-generator:0.0.1
then modify the entrypoint.sh file as mentioned above and run entrypoint.sh

@crlsgms
Copy link

crlsgms commented May 11, 2024

I tried the suggested solutions, but still not working

does anyone have a permanent one, or can explain in more detail how to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants