常用扩展
| 扩展 | 含义 | 典型值 |
|---|---|---|
| basicConstraints | 是否 CA 及路径长度 | CA:FALSE(叶证书)/ CA:TRUE,pathlen:0 |
| keyUsage | 密钥可执行的操作 | digitalSignature, keyEncipherment |
| extendedKeyUsage | 业务场景 | serverAuth / clientAuth / codeSigning |
| subjectAltName | 绑定域名与 IP | DNS:example.com, IP:203.0.113.10 |
| authorityInfoAccess | 链与 OCSP 地址 | caIssuers / OCSP URI |
| crlDistributionPoints | CRL 下载地址 | http://crl.example.com/a.crl |
过滤查看关键扩展
过滤查看关键扩展
openssl x509 -in cert.pem -noout -text | grep -A3 -E 'Basic Constraints|Key Usage|Extended Key Usage|Subject Alternative Name'扩展组合决定证书能否用于特定场景:缺少 serverAuth 的证书在部分客户端上会被拒绝用于 HTTPS。