SEC_ERROR_UNKNOWN_ISSUER, playwright python inside docker

Question:

My code is quite simple:

from playwright.sync_api import sync_playwright
pw = sync_playwright().start()
firefox = pw.firefox.launch(headless=True)
context=firefox.new_context()
page= context.new_page()

page.goto("http://www.uaf.cl/prensa/sanciones_new.aspx")

Every single time I get a SEC_ERROR_UNKNOWN_ISSUER.

Anyone know how I can bypass this? This is running inside a Docker container with update-ca-certificates.
I’ve tried using the "ignore HTTPS errors" option inside the context, to no avail(I need to access the webpage in spite of the error).

Answers:

With environment variable export CURL_CA_BUNDLE="", with ssl package:

import ssl

ssl._create_default_https_context = ssl._create_unverified_context 
Answered By: paltaa

Solved with:

context=firefox.new_context(ignore_https_errors=True)