summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/httpd/tests/Makefile
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2018-05-19 13:57:44 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2018-05-19 13:57:44 +0000
commit8f9cfadd370f655930327dc5cf645afbe6071c04 (patch)
tree14387cb5442a417fa1d697af8b9e3e6b525c925b /regress/usr.sbin/httpd/tests/Makefile
parent408aad5fa1d6b22b8d8f0f280e394cd53c0684f7 (diff)
Add regress for httpd client certificate authentication.
From Jack Burton <jack at saosce dot com dot au> - thanks!
Diffstat (limited to 'regress/usr.sbin/httpd/tests/Makefile')
-rw-r--r--regress/usr.sbin/httpd/tests/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/regress/usr.sbin/httpd/tests/Makefile b/regress/usr.sbin/httpd/tests/Makefile
index 5a85cd9d260..976ab88b3c6 100644
--- a/regress/usr.sbin/httpd/tests/Makefile
+++ b/regress/usr.sbin/httpd/tests/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.9 2017/11/10 23:29:09 naddy Exp $
+# $OpenBSD: Makefile,v 1.10 2018/05/19 13:57:43 jsing Exp $
# The following ports must be installed for the regression tests:
# p5-IO-Socket-INET6 object interface for AF_INET and AF_INET6 domain sockets
@@ -77,10 +77,16 @@ ca.crt:
server.req:
openssl req -batch -new -subj /L=OpenBSD/O=httpd-regress/OU=server/CN=localhost/ -nodes -newkey rsa -keyout server.key -out server.req
+client.req:
+ openssl req -batch -new -subj /L=OpenBSD/O=httpd-regress/OU=client/CN=localhost/ -nodes -newkey rsa -keyout client.key -out $@
+
server.crt: ca.crt server.req
openssl x509 -CAcreateserial -CAkey ca.key -CA ca.crt -req -in server.req -out server.crt
-${REGRESS_TARGETS:M*tls*} ${REGRESS_TARGETS:M*https*}: server.crt
+client.crt: ca.crt client.req
+ openssl x509 -CAcreateserial -CAkey ca.key -CA ca.crt -req -in client.req -out $@
+
+${REGRESS_TARGETS:M*tls*} ${REGRESS_TARGETS:M*https*}: server.crt client.crt
# make perl syntax check for all args files