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

Getting the desired certificates error when docker install wazuh #1415

Closed
begize opened this issue Jul 4, 2024 · 4 comments
Closed

Getting the desired certificates error when docker install wazuh #1415

begize opened this issue Jul 4, 2024 · 4 comments
Assignees
Labels
reporter/community Issue reported by the community

Comments

@begize
Copy link

begize commented Jul 4, 2024

HI everyone:
I installed docker according to the document and it is running normally, but an error occurs when getting the desired certificates. Can help me solve it?
The Linux version is ubuntu2404


mis@tguard:~/wazuh-docker/single-node$ sudo docker-compose -f generate-indexer-certs.yml run --rm generator
[+] Running 1/1
⠿Network single-node_default Created 0.9s
[+] Running 0/1
⠿ generatorError 1.8s
Error response from daemon: Head "https://registry-1.docker.io/v2/wazuh/wazuh-certs-generator/manifests/0.0.1": Get "https://auth.docker.io/token? scope=repository%3Awazuh%2Fwazuh-certs-generator%3Apull&service=registry.docker.io": read tcp 192.168.28.184:56392->34.226.69.105:443: read: connection reset by peer


@rauldpm rauldpm self-assigned this Jul 11, 2024
@rauldpm rauldpm added the reporter/community Issue reported by the community label Jul 11, 2024
@rauldpm
Copy link
Member

rauldpm commented Jul 11, 2024

Hello @begize , sorry for the late response.

Do you still have the problem?

Apparently, this problem is related to a connectivity issue, please make sure that your firewall is configured correctly to allow the connection, in case you are using a proxy, you will need to configure it as follows, as we state in the documentation https://documentation.wazuh.com/current/deployment-options/docker/wazuh-container.html#single-node-deployment (this also applies for a multi-node deployment)

# Wazuh App Copyright (C) 2017, Wazuh Inc. (License GPLv2)
version: '3'

services:
  generator:
    image: wazuh/wazuh-certs-generator:0.0.1
    hostname: wazuh-certs-generator
    volumes:
      - ./config/wazuh_indexer_ssl_certs/:/certificates/
      - ./config/certs.yml:/config/certs.yml
    environment:
      - HTTP_PROXY=YOUR_PROXY_ADDRESS_OR_DNS

I see that you are trying to pull revision 0.0.1, when the current version of 4.8.0 is 0.0.2, what version of Wazuh are you using? Did you update the repository as indicated in the documentation to maintain custom files? I couldn't reproduce your problem using 0.0.2 and 0.0.1, so it must be a connection issue.

I opened this issue so the Wazuh documentation can be updated wazuh/wazuh-documentation#7512

@begize
Copy link
Author

begize commented Jul 12, 2024 via email

@rauldpm
Copy link
Member

rauldpm commented Jul 12, 2024

I'm glad it works, this may have been a temporary issue on the part of the Docker servers, in any case, feel free to create an issue if you encounter another problem!

@Rebits
Copy link
Member

Rebits commented Jul 26, 2024

The issue seems to be solved. Closing

@Rebits Rebits closed this as completed Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reporter/community Issue reported by the community
Projects
None yet
Development

No branches or pull requests

3 participants