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

ER_CERT_AUTHORITY_INVALID when running MFTF tests #1169

Open
c-mc-cabe opened this issue Jun 4, 2024 · 2 comments
Open

ER_CERT_AUTHORITY_INVALID when running MFTF tests #1169

c-mc-cabe opened this issue Jun 4, 2024 · 2 comments
Labels
stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed

Comments

@c-mc-cabe
Copy link

c-mc-cabe commented Jun 4, 2024

Up until this week my mftf work fine but now i get an error when running MFTF tests. Accessing the same host name from my mobile device and non container browser works ok, just when i use chrome driver it throws this issue?

I rebuilt my stack after updating to the latest version using bin/update, the only thing is i have switched the image to use a seleniarm image for the m2 chip on my mac

image

@c-mc-cabe
Copy link
Author

A workaround is to add the cert into the selenium container:

Update your docker compose.yaml

  selenium:
    image: selenium/standalone-chromium:nightly
    ports:
      - "5900:5900"
      - "4444:4444"
      - "7900:7900"
    shm_size: 2g
    environment:
      - SCREEN_WIDTH=1920
      - SCREEN_HEIGHT=1080
      - SCREEN_DEPTH=24
      - DISPLAY=:99.0
    volumes:
      - ssldata:/etc/nginx/certs  # Mount the ssldata volume

Then run the command to add the cert on the selenium instance

docker exec -u root selenium_container_name /bin/bash -c "apt-get update && apt-get install -y libnss3-tools && certutil -d sql:/home/seluser/.pki/nssdb -A -t 'CP,CP,' -n MyCert -i /etc/nginx/certs/nginx.crt"

Copy link

dosubot bot commented Feb 6, 2025

Hi, @c-mc-cabe. I'm Dosu, and I'm helping the docker-magento team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • You encountered an "ER_CERT_AUTHORITY_INVALID" error with MFTF tests using ChromeDriver after updating and switching to a Seleniarm image for M2 chip compatibility.
  • The error did not occur when accessing the host from other devices and browsers.
  • You suggested a workaround by adding the certificate into the Selenium container via Docker Compose and a command to install the certificate.

Next Steps:

  • Please confirm if this issue is still relevant to the latest version of the docker-magento repository. If so, you can keep the discussion open by commenting on the issue.
  • If there is no further activity, the issue will be automatically closed in 30 days.

Thank you for your understanding and contribution!

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
Projects
None yet
Development

No branches or pull requests

1 participant