mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +01:00
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 $@
|
-key $< -out $@
|
||||||
|
|
||||||
unit/cert-server.pem: unit/cert-server.csr unit/cert-ca.pem unit/gencerts.cnf
|
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 \
|
-extfile $(srcdir)/unit/gencerts.cnf \
|
||||||
-in $< -CA $(builddir)/unit/cert-ca.pem \
|
-in $< -CA $(builddir)/unit/cert-ca.pem \
|
||||||
-CAkey $(builddir)/unit/cert-ca-key.pem \
|
-CAkey $(builddir)/unit/cert-ca-key.pem \
|
||||||
|
@ -17,3 +17,9 @@ authorityKeyIdentifier = keyid:always,issuer:always
|
|||||||
basicConstraints = CA:FALSE
|
basicConstraints = CA:FALSE
|
||||||
subjectKeyIdentifier = hash
|
subjectKeyIdentifier = hash
|
||||||
authorityKeyIdentifier = keyid:always,issuer:always
|
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
Block a user