Cosmian KMS
БесплатноБез исполняемых скриптовНе проверенExpert guidance for Cosmian Key Management System including key generation, certificate management, encryption operations, access policies, and KMS CLI…
Об этом скилле
Cosmian KMS
Expert assistance with Cosmian Key Management System operations and workflows.
Overview
Cosmian KMS is an open-source Key Management System (KMS) that provides:
- Secure key generation and storage
- Certificate lifecycle management
- Encryption/decryption operations
- Access control policies
- Support for various cryptographic algorithms
- KMIP protocol support
- REST API and CLI interface
Installation & Setup
Install Cosmian KMS CLI
# Install ckms CLI
# Check https://github.com/Cosmian/kms for latest installation instructions
# Configure KMS server connection
ckms config --server-url https://kms.example.com:9998
# With authentication
ckms config --server-url https://kms.example.com:9998 --access-token <token>
# Verify connection
ckms version
Server Configuration
# Start KMS server (if running locally)
cosmian_kms_server --database-type sqlite --sqlite-path /path/to/kms.db
# With specific port
cosmian_kms_server --port 9998
# Enable HTTPS
cosmian_kms_server --https-p12-file cert.p12 --https-p12-password <password>
Key Management
Generate Keys
Symmetric Keys
# Generate AES key (256-bit)
ckms sym keys create --algorithm aes --key-size 256 --tag production
# Generate with specific identifier
ckms sym keys create --algorithm aes --key-size 256 --id my-key-id
# Generate ChaCha20 key
ckms sym keys create --algorithm chacha20
Asymmetric Keys
# Generate RSA key pair (4096-bit)
ckms rsa keys create --size 4096 --tag production
# Generate EC key pair (P-256)
ckms ec keys create --curve nist-p256
# Generate EC key pair (P-384, more secure)
ckms ec keys create --curve nist-p384
# Generate with tags for organization
ckms rsa keys create --size 4096 --tag "env:prod" --tag "app:api"
Covercrypt Keys
# Generate Covercrypt master keys (for policy-based encryption)
ckms cc keys create-master-key-pair --policy policy.json
# Generate user decryption key
ckms cc keys create-user-key --master-private-key-id <id> --access-policy "dept::IT && level::confidential"
List Keys
# List all keys
ckms keys list
# Filter by tag
ckms keys list --tag production
# Filter by algorithm
ckms keys list --algorithm rsa
# Show detailed information
ckms keys list --detailed
Export Keys
# Export public key
ckms keys export --key-id <id> --output-file public.pem
# Export private key (requires authorization)
ckms keys export --key-id <id> --output-file private.pem --unwrap
# Export in specific format
ckms keys export --key-id <id> --format pkcs8 --output-file key.p8
Import Keys
# Import key from file
ckms keys import --key-file key.pem --tag imported
# Import with specific ID
ckms keys import --key-file key.pem --key-id my-imported-key
# Import wrapped key
ckms keys import --key-file wrapped-key.bin --wrapping-key-id <wrap-key-id>
Key Operations
# Revoke key
ckms keys revoke --key-id <id> --revocation-reason "key-compromise"
# Destroy key (permanent)
ckms keys destroy --key-id <id>
# Rekey (rotate key)
ckms keys rekey --key-id <id>
# Get key attributes
ckms keys get --key-id <id>
Certificate Management
Generate Certificate
# Create certificate from existing key
ckms certificates certify --key-id <key-id> \
--subject "CN=example.com,O=MyOrg,C=US" \
--days 365
# Generate self-signed certificate
ckms certificates certify --key-id <key-id> \
--subject "CN=example.com" \
--self-signed \
--days 365
# Certificate with SAN
ckms certificates certify --key-id <key-id> \
--subject "CN=example.com" \
--san "DNS:example.com" \
--san "DNS:www.example.com" \
--san "IP:192.168.1.1" \
--days 365
Certificate Signing Request (CSR)
# Generate CSR
ckms certificates request --key-id <key-id> \
--subject "CN=example.com,O=MyOrg,C=US" \
--output-file request.csr
# Import and sign CSR
ckms certificates import --certificate-file request.csr --tag csr
# Sign CSR with CA key
ckms certificates sign --csr-id <csr-id> \
--ca-key-id <ca-key-id> \
--days 365
Certificate Operations
# List certificates
ckms certificates list
# Export certificate
ckms certificates export --certificate-id <id> --output-file cert.pem
# Import certificate
ckms certificates import --certificate-file cert.pem --tag imported
# Validate certificate
ckms certificates validate --certificate-id <id>
# Revoke certificate
ckms certificates revoke --certificate-id <id>
Encryption & Decryption
Symmetric Encryption
# Encrypt file
ckms sym encrypt --key-id <key-id> --input-file plaintext.txt --output-file encrypted.bin
# Decrypt file
ckms sym decrypt --key-id <key-id> --input-file encrypted.bin --output-file plaintext.txt
# Encrypt with authentication
ckms sym encrypt --key-id <key-id> --input-file data.txt --output-file encrypted.bin --authenticated-data "metadata"
Asymmetric Encryption
#
Установить Cosmian KMS в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Cosmian KMS?
Expert guidance for Cosmian Key Management System including key generation, certificate management, encryption operations, access policies, and KMS CLI operations. Use this when working with Cosmian KMS, cryptographic key management, or Cosmian-specific PKI operations.
Как установить скилл Cosmian KMS?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Cosmian KMS запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic