wazuh-docker
wazuh-docker copied to clipboard
"The tool to create the certificates does not exist in any bucket"
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.
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
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
I had to restart the docker service and rerun the command to generate the certs.
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
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?
same here!
I've edited the file, but still no solution. If I find out how to fix it I'll update y'all.
Any updates?