3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 09:39:25 +01:00

build: Add a DNSName in the test server cert

This commit is contained in:
Andrew Zaborowski 2019-08-24 04:10:12 +02:00 committed by Denis Kenzior
parent 9a9ff9f2f3
commit c5627ad62e
2 changed files with 7 additions and 1 deletions

View File

@ -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 \

View File

@ -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