ERR_CERT_AUTHORITY_INVALID Issue with Apify Proxy

Hello, I'm using an Apify Proxy in combination with Playwright and ran into an ERR_CERT_AUTHORITY_INVALID error when trying to visit certain sites.

Playwright code (in node):
  const proxyRouter = ProxyRouter({
    proxies: {
      DEFAULT: `http://groups-RESIDENTIAL,country-US:${process.env.APIFY_PROXY_PASSWORD}@proxy.apify.com:8000`
    }
  });
  chromium.use(proxyRouter)

  const browser = await chromium.launch({ headless: false });
  const context = await browser.newContext();
  const page = await context.newPage();
  
  // Fails on this step! Is unable to get past this due to throwing
  // a `ERR_CERT_AUTHORITY_INVALID` error.
  await page.goto('https://apps.ilsos.gov/businessentitysearch/');

The error that I get is:
node test.mjs
node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^

page.goto: net::ERR_CERT_AUTHORITY_INVALID at https://apps.ilsos.gov/businessentitysearch/
=========================== logs ===========================
navigating to "https://apps.ilsos.gov/businessentitysearch/", waiting until "load"
============================================================
    at testIllinois (file:///Users/danielguillen/repos/jsScratchPAper/test.mjs:124:14) {
  name: 'Error'
}

Node.js v18.16.0


I'm not the most familiar with Certaificate Authority validation so I'm not sure what could be the issue or what I might be able to configure in order to resolve this. Any help or insight would be appreciated greatly - thank you!
Was this page helpful?