mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-15 09:21:26 +08:00
25 lines
497 B
Plaintext
25 lines
497 B
Plaintext
|
[req]
|
||
|
distinguished_name = req_distinguished_name
|
||
|
x509_extensions = v3_req
|
||
|
prompt = no
|
||
|
|
||
|
[req_distinguished_name]
|
||
|
C = CN
|
||
|
ST = GuangDong
|
||
|
L = ZhuHai
|
||
|
O = iresty
|
||
|
CN = test.com
|
||
|
|
||
|
[v3_req]
|
||
|
subjectKeyIdentifier = hash
|
||
|
authorityKeyIdentifier = keyid,issuer
|
||
|
basicConstraints = CA:TRUE
|
||
|
subjectAltName = @alt_names
|
||
|
|
||
|
[alt_names]
|
||
|
DNS.1 = test.com
|
||
|
DNS.2 = *.test.com
|
||
|
|
||
|
## openssl genrsa -out apisix.key 3072 -nodes
|
||
|
## openssl req -new -x509 -key apisix.key -sha256 -config openssl.conf -out apisix.crt -days 36500
|