Configuring certificate authority with openssl

From killvxk/cybersecurity-skills-zh · View interactive version

Configuring certificate authority with openssl is an AI agent skill from the GitHub repository killvxk/cybersecurity-skills-zh. 证书颁发机构(CA)是 PKI 层次结构中的信任锚,负责颁发、签署和吊销数字证书。本技能涵盖使用 OpenSSL 构建两层 CA 层次结构(根 CA + 中间 CA)。

How to use this skill

Skill file

使用 OpenSSL 配置证书颁发机构

概述

证书颁发机构(CA)是公钥基础设施(PKI)层次结构中的信任锚,负责颁发、签署和吊销数字证书。本技能涵盖使用 OpenSSL 和 Python cryptography 库构建两层 CA 层次结构(根 CA + 中间 CA),包括证书吊销列表(CRL)分发、OCSP 响应服务器配置和证书策略管理。

目标

核心概念

CA 层次结构

根 CA(离线,气隙隔离)
  |
  +-- 中间 CA(在线,运营中)
        |
        +-- 服务器证书
        +-- 客户端证书
        +-- 代码签名证书

证书扩展

| 扩展 | 用途 | 关键性 |

|-----------|---------|----------|

| basicConstraints | CA:TRUE/FALSE,路径长度约束 | 是 |

| keyUsage | keyCertSign、cRLSign、digitalSignature | 是 |

| extendedKeyUsage | serverAuth、clientAuth、codeSigning | 否 |

| subjectKeyIdentifier | 公钥哈希 | 否 |

| authorityKeyIdentifier | 颁发者密钥标识符 | 否 |

| crlDistributionPoints | CRL 的 URL | 否 |

| authorityInfoAccess | OCSP 响应服务器 URL | 否 |

安全注意事项

验证标准

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.