N8n & puppeteer cert error

Dear all,

I would like to try a simple workflow to my home router https://192.168.1.1 which is using a self signed cert.

In n8n, I used manual trigger at first, then a flow with puppeteer.

My only code in puppeteer is:
await $page.goto(‘``https://192.168.1.1``’);

When I pressed “Execute Step”, the output is

net::ERR_CERT_AUTHORITY_INVALID at ``https://192.168.1.1

I am new to n8n and want try testing it.

I appreciate someone could help me bypass this error.

Thanks!

I built with these codes:

n8n-docker-compose.yaml

services:
  postgres:
    image: postgres:latest
    container_name: postgres
    restart: unless-stopped
    ports:
      - "5432:5432"
    environment:
      POSTGRES_DB: n8n
      POSTGRES_USER: n8n_user
      POSTGRES_PASSWORD: 12345678
    volumes:
      - /apps/n8n-storage/postgres-data:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready", "-d", "db_prod"]
      interval: 30s
      timeout: 60s
      retries: 5
      start_period: 80s

  n8n:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: n8n
    restart: unless-stopped
    ports:
      - "5678:5678"
    environment:
      - N8N_SECURE_COOKIE=false
      - N8N_HOST=localhost
      - N8N_PORT=5678
      - N8N_PROTOCOL=http
      - DB_TYPE=postgresdb
      - DB_POSTGRESDB_HOST=postgres
      - DB_POSTGRESDB_PORT=5432
      - DB_POSTGRESDB_DATABASE=n8n
      - DB_POSTGRESDB_USER=n8n_user
      - DB_POSTGRESDB_PASSWORD=12345678
      - NODE_FUNCTION_ALLOW_EXTERNAL=puppeteer
      - PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
    volumes:
      - /apps/n8n-storage/n8n-data:/home/node/.n8n
    cap_add:
      - SYS_ADMIN
    depends_on:
      - postgres
    healthcheck:
      test: wget --spider http://localhost:5678/healthz > /dev/null 2>&1 || exit 1
      interval: 30s
      timeout: 10s
      retries: 3

Dockerfile

FROM n8nio/n8n:latest

USER root


ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
ENV PUPPETEER_ARGS="--no-sandbox --disable-setuid-sandbox"


RUN apk update && apk add --no-cache \
    chromium \
    nss \
    freetype \
    harfbuzz \
    ttf-freefont \
    wget \
    ca-certificates

RUN npm install puppeteer

USER node