October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

Chrome Headless Screenshot Fails with ERR_CERT_AUTHORITY_INVALID: How to Fix It

Chrome Headless certificate errors point to TLS trust, not screenshot flags. Compare regular Chrome, check for proxy inspection, repair trust safely, and reserve insecure-certificate bypasses for controlled tests.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

ERR_CERT_AUTHORITY_INVALID means Chrome could not validate the site’s TLS certificate to a trusted certificate authority. It is a certificate-trust problem, not a screenshot-rendering problem. First compare the same URL in regular Chrome, then check for an incomplete or untrusted certificate chain, an HTTPS-inspecting proxy, or a missing approved private CA. Repair trust through the site owner or your organization’s authorized process; accept invalid certificates only when an isolated test intentionally needs that exception.

What the error means—and what it does not

Chrome uses certificate authorities (CAs) as trust anchors when validating a website’s HTTPS certificate. The error means validation failed; by itself, it does not say whether the problem is the site’s certificate chain, the machine’s trust configuration, or an intermediary such as a proxy. Chromium’s Chrome Root Store FAQ explains Chrome’s trust model.

As an Amazon Associate I earn from qualifying purchases.

Headless capture options do not fix TLS validation. Chrome’s --screenshot flag captures a page, while --window-size sets the viewport. Neither establishes trust in a certificate. A longer capture timeout can allow a page more time to load, but it cannot repair a certificate error.

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

Diagnose the failure before changing trust

1. Record the environment

Before changing certificates or automation settings, record the target URL, Chrome version and executable, operating system or container image, automation framework, launch arguments, proxy or VPN settings, and the full browser or network error. Trust stores and automation controls vary across these environments, so there is no safe universal OS command for this error.

#1 Best Overall
Samsung 14" Galaxy Chromebook Go Laptop PC Computer, Intel Celeron N4500 Processor, 4GB RAM, 64GB Storage, ChromeOS, XE340XDA-KA2US, Student Laptop, Silver
  • SLIM. LIGHTWEIGHT. READY TO GO: The all-new slim design is perfect for busy lives on the go.
  • SKILLFULLY DESIGNED. MILITARY TOUGH: Built with premium craftsmanship to withstand the occasional drop or ding.
  • ALL-DAY, ALL-IN-ONE CHARGING: Power through your school day – and beyond – with a long-lasting 12-hour battery.¹
  • 3X FASTER THAN THE PREVIOUS GENERATION OF WIFI: Crush your schoolwork in record time with Wi-Fi that’s three times faster than the previous generation of Wi-Fi.
  • YOUR PHONE AND CHROMEBOOK WORK BETTER TOGETHER: Easily transfer files between devices, and control your phone right from your Chromebook.

2. Compare headless and regular Chrome

Open the same URL in ordinary Chrome in the same environment. If both modes fail, investigate the certificate chain, machine or container trust configuration, system clock, and network path. If only the automated run fails, compare its executable, runtime environment, proxy settings, and launch configuration with the working browser. This comparison narrows the search; it does not identify a root cause on its own.

3. Check for HTTPS inspection

On a work network, VPN, or managed device, ask the administrator whether a proxy intercepts HTTPS and which CA certificate is approved for that environment. Chrome Help identifies a missing or uninstalled proxy certificate as one possible cause of certificate errors. See Google Chrome Help: Get help with common error messages in Chrome.

Fix certificate trust without weakening it

If you control the website

Have the site operator check that the server presents a valid certificate and the required certificate chain. Correcting the server configuration is preferable to teaching every client to trust an exception.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
HP Chromebook 14 Laptop, Intel Celeron N4120, 4 GB RAM, 64 GB eMMC, 14" HD Display, Chrome OS, Thin Design, 4K Graphics, Long Battery Life, Ash Gray Keyboard (14a-na0226nr, 2022, Mineral Silver)
  • FOR HOME, WORK, & SCHOOL – With an Intel processor, 14-inch display, custom-tuned stereo speakers, and long battery life, this Chromebook laptop lets you knock out any assignment or binge-watch your favorite shows..Voltage:5.0 volts
  • HD DISPLAY, PORTABLE DESIGN – See every bit of detail on this micro-edge, anti-glare, 14-inch HD (1366 x 768) display (1); easily take this thin and lightweight laptop PC from room to room, on trips, or in a backpack.
  • ALL-DAY PERFORMANCE – Reliably tackle all your assignments at once with the quad-core, Intel Celeron N4120—the perfect processor for performance, power consumption, and value (2).
  • 4K READY – Smoothly stream 4K content and play your favorite next-gen games with Intel UHD Graphics 600 (3) (4).
  • MEMORY AND STORAGE – Enjoy a boost to your system’s performance with 4 GB of RAM while saving more of your favorite memories with 64 GB of reliable flash-based eMMC storage (5).

If a legitimate private CA is required

Obtain the CA certificate from the responsible administrator through an approved channel. Verify its authenticity, then follow the organization’s or operating system’s instructions for installing it in the appropriate trust store. Do not download a root certificate from an arbitrary website or install one merely to make a screenshot succeed. A trusted root can authorize certificates within its trust scope. Chromium warns: “You should never install a root certificate without carefully considering the impact this might have on your privacy and security.” Read the Chrome Root Store FAQ; Chrome Help likewise cautions that installing a certificate yourself is usually a security risk.

Allow an invalid certificate only for an intentional test

If the test is specifically meant to visit a known endpoint with an invalid certificate, WebDriver can be configured to accept insecure certificates for that browser session. Selenium documents the acceptInsecureCerts capability; when it is false, the default, the browser returns a certificate error. This is a scoped bypass, not a repair to the server’s certificate chain or the machine’s trust configuration.

Use that capability only in an isolated test where skipping certificate validation is an explicit part of the test design. Do not use it for routine production browsing or describe a successful screenshot under this setting as proof that HTTPS is trustworthy. See Selenium: Browser Options.

Run a Chrome Headless screenshot after trust is resolved

Chrome’s documented command-line pattern is:

chrome --headless --screenshot --window-size=412,892 https://example.com/

Replace chrome with the Chrome executable available in your environment and https://example.com/ with the target URL. Chrome writes screenshot.png to the current working directory. The viewport flag sets the capture dimensions; it does not change certificate validation. Chrome’s CLI reference also documents --timeout for screenshot capture, but increasing it will not fix an untrusted certificate. See Chrome Headless command-line reference.

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

Check which Headless implementation your job launches

Current Chrome Headless is unified with regular Chrome; Chrome for Developers says, “Chrome now has unified Headless and headful modes.” The updated mode shipped in Chrome 112. Starting with Chrome 132, the earlier Headless implementation is available only as the separate chrome-headless-shell binary.

When behavior appears specific to Headless, identify whether the job launches Chrome with --headless, Puppeteer with headless: 'shell', or the standalone shell executable. That distinction helps compare like with like, but none of those choices inherently repairs certificate trust. See Chrome Headless mode.

Rank #4
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.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot common cases

Symptom What to check Next step
Regular Chrome and Headless both show the error Site certificate chain, machine or container trust, system clock, and network interception. Ask the site operator to correct the chain, or confirm an approved private CA with the administrator.
Only a work network or VPN fails Whether HTTPS inspection is enabled and which proxy CA the organization authorizes. Ask the administrator for the approved certificate and installation process; do not trust an unverified root.
Only automation fails Chrome executable and version, runtime or container image, proxy configuration, and launch arguments. Compare them with the working regular-browser environment before changing trust settings.
A longer timeout changes nothing Whether Chrome is reporting a certificate-validation error rather than a slow page load. Resolve trust first; a capture timeout does not validate certificates.
The screenshot succeeds with insecure certificates enabled Whether the test intentionally targets an invalid-certificate endpoint. Keep the bypass scoped to that test session; restore normal validation for other traffic.

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server. For a normal screenshot request, one GET call returns an image or PDF; it is an alternative when you want a capture service rather than managing a browser locally. It does not make an invalid certificate trustworthy.

Example cURL request:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com/ -o shot.webp

See the ScreenshotNeo API documentation for request options. Before capture, ScreenshotNeo can accept cookie or consent banners and remove more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers indicate the page verdict and billing status. Its MCP server offers take_screenshot, get_page_info, and capture_pdf for AI agents and MCP clients.

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

Free includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 screenshots. Sign up for ScreenshotNeo’s free plan.

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

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.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.