build: Add a DNSName in the test server cert
This commit is contained in:
parent
9a9ff9f2f3
commit
c5627ad62e
|
@ -528,7 +528,7 @@ unit/cert-server.csr: unit/cert-server-key.pem unit/gencerts.cnf
|
|||
-key $< -out $@
|
||||
|
||||
unit/cert-server.pem: unit/cert-server.csr unit/cert-ca.pem unit/gencerts.cnf
|
||||
$(AM_V_GEN)openssl x509 -req -extensions cert_ext \
|
||||
$(AM_V_GEN)openssl x509 -req -extensions server_ext \
|
||||
-extfile $(srcdir)/unit/gencerts.cnf \
|
||||
-in $< -CA $(builddir)/unit/cert-ca.pem \
|
||||
-CAkey $(builddir)/unit/cert-ca-key.pem \
|
||||
|
|
|
@ -17,3 +17,9 @@ authorityKeyIdentifier = keyid:always,issuer:always
|
|||
basicConstraints = CA:FALSE
|
||||
subjectKeyIdentifier = hash
|
||||
authorityKeyIdentifier = keyid:always,issuer:always
|
||||
|
||||
[ server_ext ]
|
||||
basicConstraints = CA:FALSE
|
||||
subjectKeyIdentifier = hash
|
||||
authorityKeyIdentifier = keyid:always,issuer:always
|
||||
subjectAltName = DNS:foo.example.org
|
||||
|
|
Loading…
Reference in New Issue