Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk4 min

Puppeteer Screenshot Error: Fix `net::ERR_CERT_AUTHORITY_INVALID`

Puppeteer encounters `ERR_CERT_AUTHORITY_INVALID` during HTTPS navigation. Learn when to use `acceptInsecureCerts` and when to fix certificate trust.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If Puppeteer fails with net::ERR_CERT_AUTHORITY_INVALID, the error occurs while Chrome is navigating to an HTTPS page—not while taking the screenshot. For a controlled test against a known certificate problem, set acceptInsecureCerts: true in the browser’s launch or connection options. To make the connection trustworthy rather than bypassing its warning, fix the server’s certificate chain or configure the appropriate private certificate authority as trusted in the browser environment.

Allow Puppeteer to navigate despite the certificate error

In current Puppeteer, acceptInsecureCerts defaults to false. Set it to true when launching a browser to let navigation proceed despite HTTPS certificate errors. Puppeteer documents the option as applying to HTTPS errors during navigation; it is not a screenshot option. See the ConnectOptions API and LaunchOptions API.

As an Amazon Associate I earn from qualifying purchases.

import puppeteer from 'puppeteer';

const browser = await puppeteer.launch({
  acceptInsecureCerts: true,
});

try {
  const page = await browser.newPage();
  await page.goto('https://your-test-host.example', {
    waitUntil: 'networkidle2',
  });
  await page.screenshot({ path: 'page.png', fullPage: true });
} finally {
  await browser.close();
}

Replace https://your-test-host.example with the HTTPS address you are testing. The sequence matters: Puppeteer first navigates with page.goto(), then captures the loaded page with page.screenshot(), as shown in its screenshots guide.

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

When Puppeteer connects to an existing browser

If your script attaches to a browser that another process started, put the same option in puppeteer.connect(), rather than changing page.screenshot():

#1 Best Overall
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB
  • CRISP CLARITY: This 23.8″ Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
  • WORK SEAMLESSLY: This sleek monitor is virtually bezel-free on three sides, so the screen looks even bigger for the viewer. This minimalistic design also allows for seamless multi-monitor setups that enhance your workflow and boost productivity
  • A BETTER READING EXPERIENCE: For busy office workers, EasyRead mode provides a more paper-like experience for when viewing lengthy documents
const browser = await puppeteer.connect({
  browserWSEndpoint: 'ws://your-browser-endpoint',
  acceptInsecureCerts: true,
});

Use the endpoint supplied by your browser setup. Puppeteer’s LaunchOptions API extends its connection options, so the setting is available in either configuration path.

Choose between a test-only bypass and fixing certificate trust

ERR_CERT_AUTHORITY_INVALID indicates that Chrome does not accept the certificate authority for the presented certificate. The error alone does not identify why a particular deployment is untrusted. Check the certificate chain the site presents, whether its issuing CA is intended to be trusted, and the trust configuration in the environment running Chrome.

Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB
  • CRISP CLARITY: This 22 inch class (21.5″ viewable) Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • 100HZ FAST REFRESH RATE: 100Hz brings your favorite movies and video games to life. Stream, binge, and play effortlessly
  • SMOOTH ACTION WITH ADAPTIVE-SYNC: Adaptive-Sync technology ensures fluid action sequences and rapid response time. Every frame will be rendered smoothly with crystal clarity and without stutter
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
Approach Use it when Trade-off
acceptInsecureCerts: true An automated test must continue against a known test certificate problem. Navigation proceeds despite HTTPS errors, so that run does not validate the certificate in the ordinary way.
Correct the certificate chain or trust configuration The browser should establish a trusted HTTPS connection, including to an internal site using a private CA. You must fix the server’s served chain or configure the appropriate CA as trusted in the environment that runs Chrome.

The bypass does not repair the certificate or establish that the server’s identity is safe. Keep it limited to tests where the certificate issue is known and intentional. Chrome’s Root Program Policy describes certificate authority trust; a Chromium issue discussion notes that a self-signed certificate’s issuing CA can be installed as a local trust root on devices that access the site. The exact trust-store procedure depends on the platform and deployment; that discussion is not a general installation guide.

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

Use the option name that matches your Puppeteer version

Use acceptInsecureCerts in current Puppeteer. The Puppeteer changelog records that the previous name, ignoreHttpsErrors, was renamed in Puppeteer 23.0.0, released 2024-08-07. Older snippets may show that former spelling; check the API documentation for the version installed in your project.

Rank #3
Sale
Dell 24 Monitor - SE2426H - 23.8-inch FHD (1920x1080) 144Hz 1ms Display, in-Plane Switching (IPS) Technology, AMD FreeSync™, TÜV 3-Star 2X HDMI, Tilt
  • Clear visuals. Fluid motion: A 144Hz refresh rate and 1ms MPRT deliver smooth, tear‑free motion across work, gaming, and streaming for clearer, more fluid viewing.
  • Eye comfort: TÜV Rheinland 3‑star* certification reduces harmful blue light while preserving stunning color quality without compromise. *TÜV Rheinland 3-star eye comfort certification.
  • Wide viewing angle: Get consistent views across a wide 178° /178° viewing angle.
  • In-Plane Switching (IPS): See excellent color accuracy and consistency across wide viewing angles with In-plane Switching (IPS) technology.
  • Ultra-thin bezels: Maximize your viewing experience with thin bezels.

At the time of the documentation check on 2026-10-03, the official documentation surfaced Puppeteer 25.12.0, whose system requirements specify Node 22.12 or later. These version details can change. If you supply a separate Chrome binary using a custom executable path, consult Puppeteer’s Puppeteer-to-Chrome for Testing version mapping; Puppeteer says it is only guaranteed to work with its bundled browser when a custom executable path is used.

Troubleshoot the screenshot workflow

  • The certificate error still appears: Confirm the option is spelled acceptInsecureCerts and is set on the browser launch or connection that handles the navigation. The current API’s default is false. If you use a separately managed browser, make sure your script is connecting with the intended options.
  • You set an option on page.screenshot(): Move it to puppeteer.launch() or puppeteer.connect(). The failure happens during HTTPS navigation, before screenshot capture.
  • The page loads only when the bypass is enabled: Treat that as evidence that the test is proceeding without ordinary certificate validation, not as a certificate repair. Inspect the site’s served chain and the browser environment’s trust configuration.
  • An older example uses ignoreHttpsErrors: That is the former name. Puppeteer records the rename to acceptInsecureCerts in version 23.0.0; verify the correct spelling for your installed release.
  • A custom Chrome executable behaves differently: Check the Puppeteer and Chrome for Testing version mapping and the installed release’s requirements. Puppeteer only guarantees its bundled browser when a custom executable path is used.

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server. A single GET request can return a screenshot or PDF; its capture process accepts cookie and consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets, with each step configurable. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and responses identify the page verdict and billing status. AI agents can use its MCP server tools, including take_screenshot, get_page_info, and capture_pdf.

For a straightforward capture, request an image from the API:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor
  • CURVED FOR ENHANCED ENGAGEMENT: An immersive viewing experience with a curved monitor that wraps more closely around your field of vision; It creates a wider view, enhancing depth perception and minimizing peripheral distraction
  • SMOOTH PERFORMANCE FOR SEAMLESS CONTENT: Stay in the action when playing games, watching videos, or working on creative projects; The 100Hz refresh rate reduces lag and motion blur so you don't miss a thing in fast-paced moments¹
  • MORE GAMING POWER: Gain the edge with optimizable game settings; Color and image contrast can be adjusted to see scenes more vividly and spot enemies hiding in the dark; Game Mode adjusts any game to fill the screen so you can view every detail²
  • KEEP IT EASY ON THE EYES: Care for your eyes and stay comfortable, even during long sessions; Advanced eye comfort technology certified by TÜV reduces eye strain by minimizing blue light and reducing irritating screen flicker²
  • INCREASED VERSATILITY: Connect to more; Plug devices straight into your monitor for increased flexibility, making your computing environment even more convenient
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Replace YOUR_API_KEY with your key and change the target URL as needed. See the ScreenshotNeo API documentation for the request options. Free includes 1,000 shots a month with no card; paid plans start at $5 for 3,000 shots. Sign up for 1,000 free screenshots a month, with no card required.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Frequently Asked Questions

Does `acceptInsecureCerts` make an invalid certificate safe?

No. It lets navigation proceed despite HTTPS errors; it does not repair the certificate or verify the server’s identity.

Best Value
Sale
Sceptre New 22-Inch Gaming Monitor, FHD 1080p, Up to 144Hz, HDMI, DisplayPort, Built-in Speakers, Machine Black (E225W-FW144 Series, 2026)
  • 【INTEGRATED SPEAKERS】Whether you're at work or in the midst of an intense gaming session, our built-in speakers provide rich and seamless audio, all while keeping your desk clutter-free.
  • 【EASY ON THE EYES】 Protect your eyes and enhance your comfort with Blue-Light Shift technology. This feature reduces harmful blue light emissions from your screen, helping to alleviate eye strain during long hours of use and promoting healthier viewing habits.
  • 【WIDEN YOUR PERSPECTIVE】Our sleek minimal bezel design ensures undivided attention. The nearly bezel-free display seamlessly connects in a dual monitor arrangement, delivering an unobstructed view that lets you focus on more at once, completely distraction-free.

Can I use this option only for one `page.goto()` call?

The documented setting belongs on Puppeteer’s browser launch or connection options, not on `page.goto()` or `page.screenshot()`.

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.

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.

Leave a Reply

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

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
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

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.