Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

ERR_CERT_AUTHORITY_INVALID means the browser cannot build a trusted certificate-authority chain for the HTTPS site it is opening. The durable fix is to serve a complete certificate chain for the correct hostname or install the trusted internal root CA in the environment running Playwright. For a disposable local test where certificate validation is not being tested, set ignoreHTTPSErrors: true on the narrowest suitable Playwright context. If the error appears while downloading Playwright browsers behind an intercepting proxy, configure NODE_EXTRA_CA_CERTS before running the installer.

What ERR_CERT_AUTHORITY_INVALID means in Playwright

The browser used by Playwright is refusing an HTTPS connection because it cannot verify the server’s certificate chain back to a trusted certificate authority. This is a certificate-trust failure, not necessarily a Playwright defect. Common causes include a self-signed development certificate, an organization’s private CA missing from the test environment, a server that omits an intermediate certificate, a certificate whose hostname does not match the URL, or a proxy that re-signs HTTPS traffic with its own CA.

First identify where the failure occurs. A navigation failure while your test visits a site points to trust or certificate configuration on the browser-to-site path. A failure during npx playwright install points instead to the network path used to download browser binaries. Those cases have different remedies; changing a page’s browser context does not install trust for the browser installer.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Diagnose the certificate and network path before bypassing validation

  1. Confirm the exact URL and hostname. Compare the hostname in the Playwright URL with the hostname covered by the certificate. A certificate for one host does not establish trust for a different host.
  2. Determine whether a proxy is involved. Corporate or security proxies may intercept HTTPS and present a certificate issued by an internal CA. The relevant trust root is then the organization’s proxy CA, not necessarily the public CA expected by the site.
  3. Check the chain served by the endpoint. A valid leaf certificate can still fail if the server does not provide required intermediate certificates. Have the endpoint serve the required intermediates along with the leaf certificate.
  4. Establish whether the test is supposed to verify TLS. If certificate validation is part of the test’s purpose, keep it enabled and fix the chain or trust configuration. If the test concerns unrelated UI behavior on a disposable local site, a scoped bypass may be reasonable.
  5. Separate client authentication from server trust. A request for a client certificate is a separate issue. Supplying a client certificate authenticates your test to the server; it does not make the server’s certificate trusted.

Fix the certificate properly for production-like tests

Serve a complete chain with the right hostname

For a publicly reachable or production-like test endpoint, configure the server to present a certificate valid for the hostname in the URL and include the required intermediate certificates. Correcting the endpoint preserves normal browser certificate enforcement, so the test can detect real HTTPS configuration problems rather than silently accepting them.

#1 Best Overall
HP OmniBook 3 17.3 inch Laptop PC, FHD Display, AMD Ryzen 3 30, 8 GB RAM, 512 GB SSD, AMD Radeon 610M Graphics, Windows 11 Home, Mica Silver, 17-dp0199nr
  • FULL HD IPS DISPLAY - Enjoy vibrant, crystal-clear images with 178-degree wide-viewing angles
  • AMD RYZEN 3 30 PROCESSOR - Everyday performance you can count on; Multitask, stream, game casually, and edit photos smoothly with responsive power and vibrant HDR visuals
  • ENJOY UP TO 14 HOURS AND 15 MINUTES OF BATTERY LIFE - HP Fast Charge restores battery from 0 to 50% in approximately 45 minutes
  • AMD RADEON 610M GRAPHICS - Experience smooth entertainment; Built for streaming and multitasking, enjoy realistic visuals and efficient performance for work and play
  • STORAGE AND MEMORY - 512 GB PCIe NVMe M.2 SSD offers fast speed and efficient storage; and 8 GB LPDDR5 RAM memory boosts performance with higher bandwidth

Install the organization’s root CA in the browser environment

If an internal service is intentionally signed by a private organizational CA, make that root CA trusted in the environment where the Playwright browser runs. This is the preferred solution for an internal HTTPS endpoint when the test is meant to exercise the normal trusted connection. Installing a CA on a developer workstation alone may not be enough if the tests run in a separate container, CI runner, or other environment; configure the environment that actually launches the browser.

Keep the trust change as narrow and controlled as your environment allows. Use the organization’s approved root certificate, and verify that the test URL is using the expected chain. Avoid replacing the certificate-validation fix with a broad bypass when you need meaningful coverage of HTTPS behavior.

Use ignoreHTTPSErrors only for a controlled test bypass

Playwright’s ignoreHTTPSErrors option controls whether HTTPS errors are ignored for network requests. Microsoft’s Playwright API documentation says it defaults to false (accessed 2026-09-29). Set it only when certificate validation is outside the purpose of the test. With the option enabled, the browser context no longer enforces HTTPS-error rejection for that context; this can conceal a broken or intercepted connection.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
HP 14" HD Chromebook Laptop for Students, Intel Quad-Core N4120(> N4020), 4GB RAM, 64GB eMMC, WiFi, Webcam, HDMI, USB-A&C, 14 Hours Battery Life, Zoom, Chrome OS, CUE Accessories
  • Intel Celeron N4120: 4 Cores & Threads, 1.1GHz Base Clock, Up to 2.6GHz Boost Clock, 4MB Cache, Intel UHD Graphics 600. The perfect combination of performance, power consumption, and value helps your device handle multitasking smoothly and reliably with four processing cores to divide up the work.
  • 14" HD Display: 14.0-inch diagonal, HD (1366 x 768), micro-edge, anti-glare. See your digital world in a whole new way. Enjoy movies and photos with the great image quality and high-definition detail of 1 million pixels.
  • Memory & Storage: 4 GB LPDDR4x & 64 GB eMMC Storage. Adequate high-bandwidth RAM to smoothly run multiple applications and browser tabs all at once. An embedded multimedia card provides reliable flash-based storage.
  • Ports:2 x USB 3.0 Type-A,1 x USB 3.0 Type-C,1 x HDMI,1 x Headphone Jack
  • Chrome OS: Chromebook is a computer for the way the modern world works, with thousands of apps. Enjoy the seamless simplicity that comes with Google Chrome and Android apps, all integrated into one laptop. It’s fast, simple, and secure.

Playwright Test configuration

To apply the setting to tests using the configured Playwright Test project, add it under use in playwright.config.ts:

import { defineConfig } from '@playwright/test';

export default defineConfig({
  use: {
    ignoreHTTPSErrors: true
  }
});

Use this configuration only for the project or test group that needs the bypass. If other tests are meant to validate certificate behavior, keep their configuration at the default of false rather than enabling the option for the entire suite.

Per browser context

When creating a context directly, provide the option when creating that context:

Rank #3
Sale
AKCHART 15.6'' AI Laptop with Office 365 12GB RAM 256GB SSD Win 11 Laptops
  • Stunning 15.6" FHD IPS Display: Experience crisp 1920x1080 resolution on this 15.6 inch laptop with an IPS panel that delivers wide viewing angles and vivid colors. The narrow-bezel design maximizes screen real estate for comfortable viewing on this Win 11 laptop, whether you're studying or working.
  • Celeron J4105 Processor & 256GB SSD: Powered by a reliable Celeron J4105 processor paired with 12GB DDR4 memory and a fast 256GB M.2 SSD. This laptop computer supports SSD expansion up to 2TB and TF card expansion up to 1TB, so your storage grows with your needs. Delivers smooth multitasking for daily productivity.
  • AI-Powered Win 11 Laptop: Built-in AI features enhance your productivity with smart assistance for writing, summarizing, and task management. Pre-installed with Win 11 and includes Office 365 subscription. This student laptop is backed by 1-year warranty and 24/7 customer support.
  • All-Day 7000mAh Battery & 180° Hinge: The high-capacity 7000mAh battery keeps this laptop powered through long classes or meetings. The 180-degree lay-flat hinge lets you share your screen effortlessly during presentations. This durable laptop computer adapts to your dynamic workflow.
  • Versatile Connectivity Hub: Equipped with USB 3.2, Type-C, Mini HDMI, and 3.5mm audio jack to connect all your peripherals. Stay online anywhere with high-speed 5G WiFi and Bluetooth 4.2. This college laptop keeps you connected at home, in the library, or on the go.
const context = await browser.newContext({
  ignoreHTTPSErrors: true
});
const page = await context.newPage();

await page.goto('https://your-test-host.example');

Replace the example host with the URL under test. A context-level choice makes the scope visible in the code that creates the browser session. Do not treat it as a fix for an invalid certificate: it is an intentional decision to ignore HTTPS errors during that session.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Trust a proxy CA when Playwright browser installation fails

If a proxy intercepts downloads with a custom CA that is not trusted, Playwright’s browser installation guide documents setting NODE_EXTRA_CA_CERTS to the custom root certificate before installing browsers. Set the variable in the same shell and environment that runs the installer.

macOS or Linux shell

export NODE_EXTRA_CA_CERTS="/path/to/cert.pem"
npx playwright install

PowerShell

$env:NODE_EXTRA_CA_CERTS = "C:pathtocert.pem"
npx playwright install

Windows Command Prompt

set NODE_EXTRA_CA_CERTS=C:pathtocert.pem
npx playwright install

Use the path to the organization’s trusted root certificate, not a guessed certificate or a leaf certificate copied from an unrelated endpoint. This remedy concerns browser downloads through the proxy. It is distinct from configuring the browser context for navigation to an HTTPS site.

Rank #4
HP Essential Laptop 2026, Intel CPU, 128GB Storage, Office 365, Windows 11
  • Efficient Performance for Everyday Computing: Powered by Intel N150 processor with up to 3.6 GHz Intel Turbo Boost Technology, 6 MB L3 cache, 4 cores, and 4 threads, this HP laptop delivers responsive performance for web browsing, streaming, document editing, and multitasking. Paired with 4GB LPDDR5 RAM and 128GB UFS storage, it handles daily tasks smoothly. Includes 1-year Microsoft 365 Personal subscription for Word, Excel, PowerPoint, and cloud storage to maximize your productivity.
  • 14-Inch HD Micro-Edge Display:Enjoy clear visuals on the 14-inch HD (1366 x 768) anti-glare screen with 250-nit brightness and 62.5% sRGB coverage. The micro-edge bezel delivers a 79% screen-to-body ratio in a compact design. An HP True Vision 720p HD camera with noise reduction and dual-array microphones supports clear video calls, remote work, and online learning.
  • Modern Connectivity and Wireless Technology: Stay connected with Wi-Fi 6 (2x2) for faster wireless speeds and Bluetooth 5.4 for seamless pairing with accessories. Versatile port selection includes 1 USB Type-C 10Gbps with DisplayPort 1.2 for external displays, 2 USB Type-A 5Gbps ports for peripherals, 1 HDMI 1.4b port, 1 headphone/microphone combo jack, and 1 multi-format SD media card reader. Connect monitors, transfer files quickly, and expand your workspace with ease.
  • All-Day Battery Life and Portable Design: Enjoy up to 11 hours of video playback, 7.5 hours of mixed usage, or 7.5 hours of wireless streaming on a single charge, perfect for students and professionals on the go. Weighing just 3.24 lb and measuring 12.76" x 8.86" x 0.71", this lightweight laptop fits easily in backpacks and bags. The stylish willow green top cover with matte finish and natural silver keyboard deck with vertical brushing pattern offer a modern, professional look.
  • AI-Enhanced Productivity: Access Microsoft Copilot instantly with the dedicated Copilot key for faster assistance. AI Noise Reduction filters background sounds and improves voice clarity during calls. Dual speakers provide clear audio, while the full-size natural silver keyboard and HP Imagepad support comfortable typing and navigation.

Configure a client certificate only when the server requires one

Playwright’s clientCertificates option is for mutual TLS: it supplies a client certificate and private key, or PFX material, for an exact origin so the server can authenticate the client. Use the origin that matches the service. This is not a remedy for ERR_CERT_AUTHORITY_INVALID when the browser cannot trust the server’s certificate chain. If both mutual TLS and an internal server CA are involved, configure client authentication and server trust as separate requirements.

Troubleshoot common failure patterns

Symptom Likely cause What to do
Only a local development URL fails The development certificate is self-signed or its CA is not trusted in the browser environment. Use a certificate trusted by that environment, or apply ignoreHTTPSErrors only to the disposable test context if TLS validation is irrelevant.
An internal site fails in CI but works on a workstation The CI browser environment may not trust the organization’s internal root CA, even if the workstation does. Install the approved internal root CA in the environment that runs the Playwright browser; keep validation enabled for security-sensitive tests.
A site fails only when accessed through a corporate proxy The proxy may be re-signing HTTPS traffic with a custom CA. Determine whether the error occurs during site navigation or browser installation. Configure the appropriate trusted CA for that path rather than assuming one setting fixes both.
Browser downloads fail during npx playwright install An intercepting proxy may present a CA the download process does not trust. Set NODE_EXTRA_CA_CERTS to the proxy’s custom root certificate before running the installer.
The certificate appears valid but the browser still rejects it The chain may be incomplete, or the certificate hostname may not match the URL. Check the served chain and URL hostname, then correct the certificate or server configuration instead of disabling validation.
Adding clientCertificates did not resolve the error The option handles client authentication, not trust in the server’s certificate authority. Fix the server chain or install the trusted root CA separately; retain client-certificate configuration only if the server also requires mutual TLS.
Turning on ignoreHTTPSErrors makes the test pass The option bypassed the browser’s HTTPS error enforcement for the configured context. Decide whether that test is permitted to ignore TLS errors. If it must validate HTTPS, revert the bypass and repair the chain or trust store.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Keep the fix reliable and appropriately scoped

  • For security or production coverage: keep ignoreHTTPSErrors false and repair the certificate chain or install the correct internal root CA.
  • For local UI work with a disposable self-signed certificate: use a narrow context-level bypass or replace the certificate with one trusted by the test environment.
  • For proxy-related browser downloads: configure NODE_EXTRA_CA_CERTS before the browser installation command.
  • For mutual TLS: configure the client certificate for the exact origin, and handle server certificate trust independently.

These choices have different security and maintenance trade-offs. A valid chain and trusted root preserve the browser’s normal checks. A bypass is convenient for tests that do not exercise TLS, but it can hide certificate faults. A proxy CA setting supports downloads through an intercepting proxy, but it does not replace the trust configuration needed for a separate page-navigation scenario.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Or skip the browser setup

If your goal is to capture a website screenshot rather than test Playwright’s TLS behavior, ScreenshotNeo provides a screenshot API and MCP server. It does not fix a Playwright certificate error or replace tests that need to validate HTTPS. One GET request can return a PNG, JPEG, WebP, or PDF; before capture, it accepts the consent banner like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets. Those cleanup steps can each be turned off. Bot checks, blank pages, failed loads, timeouts, and cache hits cost nothing, and response headers identify the page verdict and billing status. Its MCP server gives AI agents tools for screenshots, page information, and PDF capture. The free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots. Every feature is available on every plan.

For the full parameter reference, see the ScreenshotNeo documentation.

Best Value
Sale
HP 14 Laptop Computer, 2027 Edition, Intel N150 CPU, 4GB RAM, 128GB SSD, 1TB Cloud Storage, Win 11 with Microsoft 365
  • 【Expansive Display】The 14 Non-touch display offers clear and vibrant visuals, and anti-glare coating, perfect for both work and entertainment.
  • Designed for mobility with a slim 0.71-inch profile and lightweight 3.24 lb chassis, making it easy to carry between home, office, school
  • 【Versatile Connectivity】Stay connected with multiple ports including USB 3.0 Type-C, USB 3.0 Type-A, HDMI, and a headphone/mic combo jack, along with Wi-Fi and Bluetooth for seamless wireless networking.
  • One Year Microsoft 365
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Sign up for ScreenshotNeo and get 1,000 free screenshots a month with no card.

Frequently Asked Questions

Does ignoreHTTPSErrors fix a missing intermediate certificate on the server?

No. It makes the configured browser context ignore HTTPS errors rather than repairing the server’s certificate chain. If the test needs normal certificate validation, correct the chain or trust configuration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Should I use clientCertificates for ERR_CERT_AUTHORITY_INVALID?

Only if the server separately requires a client certificate for mutual TLS. Client certificates authenticate your test to the server; they do not establish trust in the server certificate authority.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.