| 顶层 | openssl_conf 指向模块配置;[req] 定义区分名与扩展 |
|---|---|
| 常用段 | [req_distinguished_name]、[v3_req]、[v3_ca]、[ca] |
| 扩展模板 | req_extensions / x509_extensions 指向对应段 |
| 指定配置 | 命令加 -config my.cnf 覆盖默认文件 |
最小可用的签发配置片段
最小可用的签发配置片段
[req]
default_md = sha256
distinguished_name = dn
req_extensions = v3_req
[v3_req]
subjectAltName = @alt
[alt]
DNS.1 = example.com把 SAN 与扩展写进配置模板,可避免每次签发时靠命令行拼参数而漏字段。