wazuh-docker icon indicating copy to clipboard operation
wazuh-docker copied to clipboard

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

Open plkordix opened this issue 1 year ago • 10 comments

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.

plkordix avatar Dec 05 '23 12:12 plkordix

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

am9zZWY avatar Dec 29 '23 14:12 am9zZWY

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

k0286 avatar Jan 22 '24 07:01 k0286

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

daniejstriata avatar Feb 01 '24 09:02 daniejstriata

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

wissamg avatar Apr 24 '24 17:04 wissamg

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?

crlsgms avatar May 11 '24 01:05 crlsgms

same here!

tilltmk avatar Jul 30 '24 15:07 tilltmk

I've edited the file, but still no solution. If I find out how to fix it I'll update y'all.

ThatsCrazy4171 avatar Aug 15 '24 17:08 ThatsCrazy4171

Any updates?

celinesantosh98 avatar Aug 25 '24 20:08 celinesantosh98