生成多域名证书请求文件

1.生成私钥文件key

openssl genrsa -out owothink.com.key 2048

2.根据生成的私钥文件key生成csr证书请求文件

openssl req -new -key owothink.com.key -config csr-config.cnf -out owothink.com.csr

3.查看

openssl req -text -noout -in owothink.com.csr

配置文件csr-config.cnf文件内容

[ req ]
distinguished_name = req_distinguished_name
req_extensions = req_ext
prompt = no

[ req_distinguished_name ]
C = CN
L = SH&GZ
O = XXXXXX
ST = CNSAR
CN = owothink.com

[ req_ext ]
subjectAltName = @alt_names

[ alt_names ]
DNS.1 = owothink.com
DNS.2 = owolsp.com
DNS.3 = owooss.com