---
name: "openvpn-pki-certificate-authority"
description: "Build an internal Public Key Infrastructure (PKI) and harden OpenVPN servers."
metadata:
  author: "OpenVPN"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "build pki with easyrsa"
  - "configure openvpn server"
  - "generate client certificate openvpn"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Easy-RSA PKI & OpenVPN Server Hardening

Configures OpenVPN with Easy-RSA: Certificate Authority (CA) root creation, server/client TLS certificates, HMAC firewall signatures (tls-crypt), and modern cipher suites (AES-256-GCM).

## When to Invoke
Invoke this skill whenever you need to:
- build pki with easyrsa
- configure openvpn server
- generate client certificate openvpn

## Execution SOP & Rules
1. Initialize PKI directory using ./easyrsa init-pki and generate CA with ./easyrsa build-ca.
2. Enforce modern cipher suites: data-ciphers AES-256-GCM:AES-128-GCM.
3. Use tls-crypt /etc/openvpn/tls-crypt.key to encrypt control channel packets.
4. Publish and maintain crl.pem to promptly block revoked client certificates.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
