Skip to content

[Bug]: Self signed certificate doesn't work for Docker #7611

Description

@JoFrMueller

Playwright version

1.12.3

Operating system

Linux

What browsers are you seeing the problem on?

Chromium, Firefox

Other information

Current Docker image from mcr.microsoft.com/playwright:focal

What happened? / Describe the bug

As long as we run playwright outside (for Windows 10) of Docker it picks up the locally installed SSL certificates correctly.

curl -v inside of Docker works correctly as well and picks up the custom certificates, but it seems that the Browsers don't expect the same.

But what has to be done for Docker so that the Browsers that playwright brings consider the custom SSL certificates just like other binaries do? We don't want to use the following property on the Browser configuration:

ignoreHTTPSErrors: true

We just want the Docker image to behave the same like the native experience.

Code snippet to reproduce your bug

No response

Relevant log output

page.goto: net::ERR_CERT_AUTHORITY_INVALID at https://integration.user.ui.domain.local

page.goto: SEC_ERROR_UNKNOWN_ISSUER

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions