diff options
Diffstat (limited to 'src/regress/lib/libssl/interop/Makefile.inc')
-rw-r--r-- | src/regress/lib/libssl/interop/Makefile.inc | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/src/regress/lib/libssl/interop/Makefile.inc b/src/regress/lib/libssl/interop/Makefile.inc index 7dadc3607b..dfe1424949 100644 --- a/src/regress/lib/libssl/interop/Makefile.inc +++ b/src/regress/lib/libssl/interop/Makefile.inc | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile.inc,v 1.5 2018/11/11 00:15:04 bluhm Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.6 2019/02/21 23:06:33 bluhm Exp $ |
2 | 2 | ||
3 | .PATH: ${.CURDIR}/.. | 3 | .PATH: ${.CURDIR}/.. |
4 | 4 | ||
@@ -37,7 +37,9 @@ run-self-client-server: client server 127.0.0.1.crt | |||
37 | 37 | ||
38 | CLEANFILES += 127.0.0.1.{crt,key} \ | 38 | CLEANFILES += 127.0.0.1.{crt,key} \ |
39 | ca.{crt,key,srl} fake-ca.{crt,key} \ | 39 | ca.{crt,key,srl} fake-ca.{crt,key} \ |
40 | {client,server}.{req,crt,key} | 40 | {client,server}.{req,crt,key} \ |
41 | {dsa,ec,gost,rsa}.{key,req,crt} \ | ||
42 | dh.param | ||
41 | 43 | ||
42 | 127.0.0.1.crt: | 44 | 127.0.0.1.crt: |
43 | openssl req -batch -new \ | 45 | openssl req -batch -new \ |
@@ -57,3 +59,33 @@ client.req server.req: | |||
57 | client.crt server.crt: ca.crt ${@:R}.req | 59 | client.crt server.crt: ca.crt ${@:R}.req |
58 | openssl x509 -CAcreateserial -CAkey ca.key -CA ca.crt \ | 60 | openssl x509 -CAcreateserial -CAkey ca.key -CA ca.crt \ |
59 | -req -in ${@:R}.req -out $@ | 61 | -req -in ${@:R}.req -out $@ |
62 | |||
63 | dh.param: | ||
64 | openssl dhparam -out $@ 1024 | ||
65 | |||
66 | dsa.key: | ||
67 | openssl dsaparam -genkey -out $@ 2048 | ||
68 | |||
69 | ec.key: | ||
70 | openssl ecparam -genkey -name secp256r1 -out $@ | ||
71 | |||
72 | gost.key: | ||
73 | openssl genpkey -algorithm gost2001 \ | ||
74 | -pkeyopt paramset:A -pkeyopt dgst:md_gost94 -out $@ | ||
75 | |||
76 | rsa.key: | ||
77 | openssl genrsa -out $@ 2048 | ||
78 | |||
79 | dsa.req ec.req rsa.req: ${@:R}.key | ||
80 | openssl req -batch -new \ | ||
81 | -subj /L=OpenBSD/O=tls-regress/OU=${@:R}/CN=localhost/ \ | ||
82 | -nodes -key ${@:R}.key -out $@ | ||
83 | |||
84 | gost.req: ${@:R}.key | ||
85 | openssl req -batch -new -md_gost94 \ | ||
86 | -subj /L=OpenBSD/O=tls-regress/OU=${@:R}/CN=localhost/ \ | ||
87 | -nodes -key ${@:R}.key -out $@ | ||
88 | |||
89 | dsa.crt ec.crt gost.crt rsa.crt: ca.crt ${@:R}.req | ||
90 | openssl x509 -CAcreateserial -CAkey ca.key -CA ca.crt \ | ||
91 | -req -in ${@:R}.req -out $@ | ||