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

Invalid security certificate #2

Open
tyler36 opened this issue Aug 23, 2024 · 4 comments
Open

Invalid security certificate #2

tyler36 opened this issue Aug 23, 2024 · 4 comments

Comments

@tyler36
Copy link

tyler36 commented Aug 23, 2024

Thank you for creating this addon.

Not sure if I'm missing something or the setup instructions are, but I'm getting an The URL you have provided does not have a valid security certificate. error.

Test

  1. Create a new project. Confirm working in browser.

  2. Add addon

    $ ddev get Metadrop/ddev-lighthouse
    ...
    Installed lighthouse:3.0.5 from Metadrop/ddev-lighthouse 
  3. Restart DDEV

    ddev restart
  4. Run DDEV lighthouse

    $ ddev lighthouse 
    ✅  .lighthouseci/ directory writable
    ✅  Configuration file found
    ✅  Chrome installation found
    Healthcheck passed!
    
    Running Lighthouse 2 time(s) on https://web/
    Run #1...failed!
    ....
    Runtime error encountered: The URL you have provided does not have a valid security certificate. net::ERR_CERT_AUTHORITY_INVALID
@juanjol
Copy link
Collaborator

juanjol commented Sep 1, 2024

Hi @tyler36 ,

Right now only http is working, we have to add support for https, and I think this will be the next step indeed.

Thanks for pointing us in this direction!

@tyler36
Copy link
Author

tyler36 commented Sep 2, 2024

Right now only http is working,

I followed the README and used ddev lighthouse.
What is the command to test the HTTP site?

@jonhattan
Copy link

@tyler36 I think this fixes the issue: 0f0bb65

@tyler36
Copy link
Author

tyler36 commented Oct 1, 2024

Thank you for the update.

I tried version 3.1.0 but recieved the same error.

"Runtime error encountered: The URL you have provided does not have a valid security certificate. net::ERR_CERT_AUTHORITY_INVALID"

I updated the config (tests/lighthouse/local/lighthouserc.js) to point to project name ('https://my-project.ddev.site'), incase it mattered, but it still failed.

Using the http://web/ correctly generates the report.

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

3 participants