Summer Sale! All accounts are 50% off this week.

Davva's avatar
Level 10

Dusk not working on https

I’m using homestead for my dev environment. But I can’t get Dusk to work with it because the chromium-browser doesn’t seem to trust the self-signed SSL certificate. I just simply get a blank error screen shot (because Dusk won't proceed due to the cert issue).

In Chrome on my Mac I can just simply trust the cert, but how can I make the chromium-browser which Dusk is using to also trust it (via the ssh terminal)?

0 likes
5 replies
enderandpeter@yahoo.com's avatar

Before trying that workaround, see if this StackOverflow solution helps first. Basically, you should only have to add ->setCapability('acceptInsecureCerts', true) to your DesiredCapabilities::chrome() in DuskTestCase.php. But if that doesn't work, you might have to try Plan B: adding the cert to a local store that Chromium looks at first.

2 likes

Please or to participate in this conversation.