This folder contains a Claude Code skill for managing X.509 certificates via the PKI Manager CLI.
Claude Code skills are reusable instructions that extend Claude's capabilities for specific tasks. This skill teaches Claude how to use the PKI Manager CLI to manage Certificate Authorities and certificates.
Clone this repository and create a symlink:
# Clone the skill repository
git clone https://github.com/oriolrius/pki-manager-skill.git ~/.local/share/pki-manager-skill
# Create skills directory if it doesn't exist
mkdir -p ~/.claude/skills
# Create symlink
ln -s ~/.local/share/pki-manager-skill ~/.claude/skills/pki-cliClone directly into the skills directory:
# Create skills directory if it doesn't exist
mkdir -p ~/.claude/skills
# Clone directly
git clone https://github.com/oriolrius/pki-manager-skill.git ~/.claude/skills/pki-cliTo use this skill only within a specific project:
# Inside your project
mkdir -p .claude/skills
git clone https://github.com/oriolrius/pki-manager-skill.git .claude/skills/pki-cliBefore using the skill, you need to configure your PKI Manager credentials:
# Create config directory
mkdir -p ~/.config/pki-cli
# Create .env file with your credentials
cat > ~/.config/pki-cli/.env << 'EOF'
PKI_API_URL=https://your-pki-server.example.com/api/v1
PKI_OIDC_URL=https://your-iam-server.example.com/realms/realm/protocol/openid-connect/token
PKI_CLIENT_ID=your-client-id
PKI_CLIENT_SECRET=your-client-secret
EOFOnce installed, Claude Code will automatically use this skill when you ask about:
- Certificate Authority (CA) management
- Certificate issuance, renewal, or revocation
- PKI operations
- X.509 certificate downloads
- "List all CAs in PKI Manager"
- "Create a new CA called Internal CA"
- "Issue a server certificate for api.example.com"
- "Download certificate ABC123 as PKCS12"
- "Show expiring certificates"
- "Renew certificate XYZ789"
You can also invoke the skill manually using:
/pki-cli
SKILL.md- The main skill file containing CLI usage instructionsREADME.md- This installation guide
- Claude Code CLI installed
- uv or uvx for running the CLI
- PKI Manager API access with OIDC credentials
| Project | Description |
|---|---|
| PKI Manager | Main PKI Manager web application |
| PKI Manager CLI | Python CLI tool for PKI Manager |
| PKI Manager Ansible | Ansible Collection for certificate management (Galaxy) |