How to get Chrome Web to accept secure cookies from local domain with self signed certification

142 views
Skip to first unread message

Geoffrey Hoffman

unread,
Dec 23, 2022, 12:35:51 PM12/23/22
to ChromeDriver Users
  • I have a legacy site on which I am attempting to use Laravel Dusk for browser testing which uses Chrome Web Driver under the hood
  • I have implemented self-signed certificates for the local domain.
  • I have implemented a RootCA which I used to sign the local domain's SSL certificate.
  • I have imported the RootCA.crt to my laptop's Keychain and set it to Always Trust.
  • The website's SSL is now working/accepted/green even in Chrome. It is recognized as a valid SSL cert.
  • When I test the site using the SSL domain, Dusk refuses to accept cookies, so my login fails.
  • When I test the site using http://localhost, Dusk accepts the cookies and I can login without issue.
  • Adding --ignore-certificate-errors, ignore-ssl-errors and ->setCapability('acceptInsecureCerts', true) have no effect on cookies, they're simply ignored regardless of these configuration options

I have posted this as an issue to Laravel Dusk here.

I am cross posting here, because I am not sure where else to ask support questions about Chrome web driver. 

Basically I am trying to understand why Chrome WebDriver doesn't use my local computer's Keychain Access to trust the certificate i self-signed. 

It seems like it's an issue or setting with Chrome Web Driver itself. 

Does anyone know how to get Chrome Webdriver to accept secure cookies of a self-signed cert? Or where the trust store is? It's ignoring keychain access.

TIA-
Geoff




Reply all
Reply to author
Forward
0 new messages