SSL生成多域名CSR指南
参考老外的:
- Make a copy your initial
openssl.cnffile (the original is probably somewhere under/etcon Linux). - Edit it to add
req_extensions = v3_reqin the[ req ]section. - Edit it to add
subjectAltName=DNS:www.example.com,DNS:www.other-example.com(oneDNS:entry per host name you require) in the[ v3_req ]section. - Make OpenSSL use that configuration file. Call it with
OPENSSL_CONF=/path/to/your/openssl.cnf openssl req ...
生成(假如复制的文件名为 config.cnf):
openssl req -new -nodes -out myreq.csr -config config.cnf -batch

浙公网安备 33010602011771号