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 · 1 comment
Open

ER_CERT_AUTHORITY_INVALID when running MFTF tests #1169

c-mc-cabe opened this issue Jun 4, 2024 · 1 comment

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"

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

1 participant