mtls-configuration – DevOps & Infrastructure skill for AI agents
Configure mutual TLS (mTLS) for zero-trust service-to-service communication. Use when implementing zero-trust networking, certificate management, or securing internal service communication.
Install the mtls-configuration skill with one command
Pick the tool you use, copy the command and paste it in your terminal. The skill lands in that tool's skills folder and is ready in your next session.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/mtls-configuration-70c09.tgz | tar xz -C ~/.claude/skills
Call it in Claude Code: /mtls-configuration – then describe the task you want done.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/mtls-configuration-70c09.tgz | tar xz -C ~/.codex/skills
Call it in Codex: $mtls-configuration – then describe the task you want done.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/mtls-configuration-70c09.tgz | tar xz -C ~/.hermes/skills
Call it in Hermes Agent: /mtls-configuration – then describe the task you want done.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/mtls-configuration-70c09.tgz | tar xz -C ~/.deepcode/skills
Call it in DeepSeek: /mtls-configuration – then describe the task you want done.
SKILL.md content
mTLS Configuration
Comprehensive guide to implementing mutual TLS for zero-trust service mesh communication.
When to Use This Skill
- Implementing zero-trust networking
- Securing service-to-service communication
- Certificate rotation and management
- Debugging TLS handshake issues
- Compliance requirements (PCI-DSS, HIPAA)
- Multi-cluster secure communication
Core Concepts
1. mTLS Flow
┌─────────┐ ┌─────────┐
│ Service │ │ Service │
│ A │ │ B │
└────┬────┘ └────┬────┘
│ │
┌────┴────┐ TLS Handshake ┌────┴────┐
│ Proxy │◄───────────────────────────►│ Proxy │
│(Sidecar)│ 1. ClientHello │(Sidecar)│
│ │ 2. ServerHello + Cert │ │
│ │ 3. Client Cert │ │
│ │ 4. Verify Both Certs │ │
│ │ 5. Encrypted Channel │ │
└─────────┘ └─────────┘2. Certificate Hierarchy
Root CA (Self-signed, long-lived)
│
├── Intermediate CA (Cluster-level)
│ │
│ ├── Workload Cert (Service A)
│ └── Workload Cert (Service B)
│
└── Intermediate CA (Multi-cluster)
│
└── Cross-cluster certsTemplates and detailed worked examples
Full template library and detailed worked examples live in references/details.md. Read that file when you need the concrete templates.
Best Practices
Do's
- Start with PERMISSIVE - Migrate gradually to STRICT
- Monitor certificate expiry - Set up alerts
- Use short-lived certs - 24h or less for workloads
- Rotate CA periodically - Plan for CA rotation
- Log TLS errors - For debugging and audit
Don'ts
- Don't disable mTLS - For convenience in production
- Don't ignore cert expiry - Automate rotation
- Don't use self-signed certs - Use proper CA hierarchy
- Don't skip verification - Verify the full chain
Related skills
- multi-cloud-architecture – Design multi-cloud architectures using a decision framework to select and integrate…
- azure-microsoft-playwright-testing-ts – Run Playwright tests at scale with cloud-hosted browsers and integrated Azure portal…
- azure-monitor-audit – Configure Azure Monitor and Activity Log for auditing. Set up diagnostic settings and…
- azure-monitor-ingestion-java – Azure Monitor Ingestion SDK for Java. Send custom logs to Azure Monitor via Data…
- azure-monitor-ingestion-py – Azure Monitor Ingestion SDK for Python. Use for sending custom logs to Log Analytics…
- azure-monitor-opentelemetry-exporter-java – Azure Monitor OpenTelemetry Exporter for Java. Export OpenTelemetry traces, metrics, and…
- azure-monitor-opentelemetry-exporter-py – Azure Monitor OpenTelemetry Exporter for Python. Use for low-level OpenTelemetry export…
- azure-monitor-opentelemetry-py – Azure Monitor OpenTelemetry Distro for Python. Use for one-line Application Insights…