Mtls Configuration skill for Claude

Configure mutual TLS (mTLS) for zero-trust service-to-service communication.

When Claude uses it

Use when implementing zero-trust networking, certificate management, or securing internal service communication.

Mtls Configuration SKILL.md

The full skill file from wshobson/agents (MIT).

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 certs

Templates 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

How to install Mtls Configuration

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit wshobson/agents/plugins/cloud-infrastructure/skills/mtls-configuration#main ~/.claude/skills/mtls-configuration

Codex

npx degit wshobson/agents/plugins/cloud-infrastructure/skills/mtls-configuration#main ~/.codex/skills/mtls-configuration

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Mtls Configuration skill do?

Configure mutual TLS (mTLS) for zero-trust service-to-service communication. Use when implementing zero-trust networking, certificate management, or securing internal service communication.

+How do I install Mtls Configuration in Claude Code?

Copy the skill folder into ~/.claude/skills/mtls-configuration, for example with "npx degit wshobson/agents/plugins/cloud-infrastructure/skills/mtls-configuration#main ~/.claude/skills/mtls-configuration". Claude Code loads it automatically and uses it when a task matches.

+Does Mtls Configuration work with ChatGPT or Codex?

Yes. Mtls Configuration uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/mtls-configuration. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Mtls Configuration free?

Mtls Configuration is published on GitHub by wshobson under the MIT license, which allows free use.

Related devops & cloud skills

  1. Supabase

    Official

    Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron,…

    supabase/agent-skills★ 3.1k
  2. Senior Architect

    System architecture decisions with a written rationale: monolith vs microservices, database choice, scaling limits, ADRs, Mermaid diagrams.

    alirezarezvani/claude-skills★ 30k
  3. Vercel Deploy

    Official

    Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the…

    openai/skills★ 29k
  4. Multi Cloud Architecture

    Design multi-cloud architectures using a decision framework to select and integrate services across AWS, Azure, GCP, and OCI.

    wshobson/agents★ 43k
  5. Prometheus Configuration

    Set up Prometheus for comprehensive metric collection, storage, and monitoring of infrastructure and applications.

    wshobson/agents★ 43k
  6. Recsys Pipeline Architect

    Design composable recommendation, ranking, and feed pipelines using the six-stage Source→Hydrator→Filter→Scorer→Selector→SideEffect…

    wshobson/agents★ 43k
  7. Service Mesh Observability

    Implement comprehensive observability for service meshes including distributed tracing, metrics, and visualization.

    wshobson/agents★ 43k
  8. Similarity Search Patterns

    Implement efficient similarity search with vector databases. Use when building semantic search, implementing nearest neighbor queries, or…

    wshobson/agents★ 43k
  9. Slo Implementation

    Define and implement Service Level Indicators (SLIs) and Service Level Objectives (SLOs) with error budgets and alerting.

    wshobson/agents★ 43k

See all devops & cloud skills →

More skills from wshobson

  1. Multi Reviewer Patterns

    Coordinate parallel code reviews across multiple quality dimensions with finding deduplication, severity calibration, and consolidated…

    wshobson/agents★ 43k
  2. Nextjs App Router Patterns

    Master Next.js 14+ App Router with Server Components, streaming, parallel routes, and advanced data fetching.

    wshobson/agents★ 43k

All skills by wshobson →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.