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
[BUG] Windows + Webkit test fails with 'SSL peer certificate or SSH remote key was not OK' #24512
Comments
Filed upstream: https://bugs.webkit.org/show_bug.cgi?id=259767 |
Looks like a workaround running this file, thats why we didn't experience it on GitHub Actions: https://github.com/actions/runner-images/blob/4ec9fdae13222a0b2b278ae1ddcdc9e8b44901ed/images/win/scripts/Installers/Install-RootCA.ps1 @puagarwa could you try doing that? |
Sure, i will give a try. |
@mxschmitt workaround works for us but I assume you will still followup upstream for root cause. |
Amazing, we discussed it in the team meeting and will wait for more users who run into it before we proceed with making changes to the current implementation. |
Closing for now as working as intended, for other customers who run into it, please re-file. Thanks! Workaround if you are facing this issue:
|
If you're going to run this workaround script on your dev machine, be aware that it disables the root certificate auto-update mechanism in your Windows install. In other words, it's a fairly invasive workaround. To be fair it also manually updates the root certificate store from Windows Update on every run. I think I'd rather just skip webkit entirely when running tests interactively, and only run those tests in CI. |
Any ideas of a less invasive workaround? Ah, if I read the original post more closely, the below works for me. const context = await browser.newContext({
cache: "disabled",
ignoreHTTPSErrors: true
}) |
Playwright example tests failed for webkit project when ran on azure windows VM with SSL error
Few points
System info
Source code
Config file
Test file (self-contained)
Steps
Expected
Test should pass
Actual
Webkit Tests failed with SSL error
Error: page.goto: SSL peer certificate or SSH remote key was not OK
navigating to "https://playwright.dev/", waiting until "load"
The text was updated successfully, but these errors were encountered: