npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-mtls-openai

v0.1.1

Published

n8n community nodes for OpenAI-compatible Chat Model and Embeddings with mTLS (mutual TLS) x509 client certificate authentication — for enterprise users connecting to AI inference endpoints behind auth proxies

Readme

n8n-nodes-mtls-openai

n8n community nodes for OpenAI-compatible Chat Model and Embeddings with mTLS (mutual TLS) x509 client certificate authentication — for enterprise users connecting to AI inference endpoints behind auth proxies.

Overview

This package provides two n8n AI sub-nodes that enable connections to OpenAI-compatible API endpoints (Ollama, vLLM, LiteLLM, etc.) through mTLS authentication proxies. This is essential for enterprise environments where AI inference services are protected by mutual TLS with x509 client certificates.

Nodes

mTLS OpenAI Chat Model

  • Type: AI Sub-Node (Language Model)
  • Output: ai_languageModel
  • Use case: Connect to OpenAI-compatible chat completion endpoints behind mTLS proxies
  • Works with: AI Agent, AI Chain, and other AI nodes in n8n

mTLS OpenAI Embeddings

  • Type: AI Sub-Node (Embedding)
  • Output: ai_embedding
  • Use case: Connect to OpenAI-compatible embedding endpoints behind mTLS proxies
  • Works with: Vector Store nodes for RAG pipelines (insert & retrieve)

Installation

In n8n (Community Nodes)

  1. Go to SettingsCommunity Nodes
  2. Select Install
  3. Enter n8n-nodes-mtls-openai
  4. Agree to the risks and click Install

Manual Installation

cd ~/.n8n/nodes
npm install n8n-nodes-mtls-openai

Credential Setup

Create a new mTLS OpenAI API credential with the following fields:

| Field | Required | Description | |-------|----------|-------------| | Base URL | Yes | The OpenAI-compatible API base URL (e.g., https://your-proxy:8443/v1) | | API Key | No | API key for services that require it (leave empty if not needed) | | CA Certificate | Yes | PEM-encoded CA certificate for verifying the server | | Client Certificate | Yes | PEM-encoded client certificate for mTLS authentication | | Client Key | Yes | PEM-encoded client private key | | Passphrase | No | Passphrase for the client key (if encrypted) |

Use Cases

  • Ollama behind mTLS proxy: Connect n8n AI agents to Ollama instances protected by nginx/envoy mTLS termination
  • vLLM with client certificates: Access vLLM inference endpoints in secure enterprise networks
  • LiteLLM proxy: Route through LiteLLM with mTLS authentication
  • Any OpenAI-compatible API: Works with any service that implements the OpenAI API specification and requires client certificate authentication

Architecture

n8n ──► mTLS OpenAI Node ──► mTLS Proxy (nginx/envoy) ──► AI Backend (Ollama/vLLM/LiteLLM)
         │                        │
         │ Client Cert (x509)     │ Verifies client cert
         │ CA Cert                │ TLS termination
         └────────────────────────┘

Development

Prerequisites

  • Node.js 20+
  • Docker & Docker Compose (for integration testing)

Setup

cd n8n-nodes-mtls-openai
npm install
npm run build

Testing

# Unit tests
npm test

# Integration tests (requires Docker)
cd ..
./certs/generate-certs.sh --force
cd docker && docker compose up -d
# ... run integration tests
docker compose down

Linting

npm run lint
npm run lintfix

License

MIT