root/test/Makefile.in

Revision 78f6da30945efe0fe5757c5c95b033f3d7c5fb7f, 3.2 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 8 hours ago)

'openssl ca' gets pissed when run concurrently

  • Property mode set to 100644
Line 
1 .NOTPARALLEL:
2
3 CC=@CC@
4 CPPFLAGS=@CPPFLAGS@
5 CFLAGS=@CFLAGS@
6 LDFLAGS=@LDFLAGS@
7 AR=@AR@
8 RANLIB=@RANLIB@
9 LIBS=@LIBS@
10 PGLIBS=@PGLIBS@
11 INSTALL=@INSTALL@
12
13 prefix=@prefix@
14 exec_prefix=@exec_prefix@
15 bindir=@bindir@
16 sbindir=@sbindir@
17 libdir=@libdir@
18 includedir=${prefix}/include
19 libexecdir=@libexecdir@
20 datarootdir = @datarootdir@
21 mandir=@mandir@
22 mansubdir=@mansubdir@
23 docdir=${prefix}/@docdir@
24 sysconfdir=@sysconfdir@
25 srcdir=@srcdir@
26 top_srcdir=@top_srcdir@
27
28 all:    testcerts testcrl
29 clean:  clean-keys clean-tests
30 # This stuff if all cert stuff to make testing the daemons easier
31
32 demoCA-dir:
33         @mkdir -p demoCA
34         @touch demoCA/index.txt
35         @test -f demoCA/serial || echo 00 > demoCA/serial
36
37 test-ca.key:
38         openssl genrsa -out test-ca.key
39
40 test-ca.csr:    test-ca.key
41         openssl req -key test-ca.key -days 365 -new -out test-ca.csr -config demo-openssl.cnf -subj "/C=US/ST=Maryland/O=OmniTI Labs/CN=Reconnoiter Test CA"
42
43 test-ca.crt:    test-ca.key test-ca.csr
44         openssl x509 -req -in test-ca.csr -signkey test-ca.key -out test-ca.crt
45
46 client.key:
47         openssl genrsa -out client.key
48
49 client.csr:     client.key
50         openssl req -key client.key -days 365 -new -out client.csr -config demo-openssl.cnf -subj "/C=US/ST=Maryland/O=OmniTI Labs/CN=sampleclient"
51
52 client.crt:     client.csr test-ca.key test-ca.crt
53         openssl ca -batch -config demo-openssl.cnf -in client.csr -out client.crt -outdir . -keyfile test-ca.key -cert test-ca.crt -days 120
54
55 badclient.key:
56         openssl genrsa -out badclient.key
57
58 badclient.csr:  badclient.key
59         openssl req -key badclient.key -days 365 -new -out badclient.csr -config demo-openssl.cnf -subj "/C=US/ST=Maryland/O=OmniTI Labs/CN=samplebadclient"
60
61 badclient.crt:  badclient.csr test-ca.key test-ca.crt
62         openssl ca -batch -config demo-openssl.cnf -in badclient.csr -out badclient.crt -outdir . -keyfile test-ca.key -cert test-ca.crt -days 120
63
64 test-noit.key:
65         openssl genrsa -out test-noit.key
66
67 test-noit.csr:  test-noit.key
68         openssl req -key test-noit.key -days 365 -new -out test-noit.csr -config demo-openssl.cnf -subj "/C=US/ST=Maryland/O=OmniTI Labs/CN=noit-test"
69
70 test-noit.crt:  test-noit.csr test-ca.key test-ca.crt
71         openssl ca -batch -config demo-openssl.cnf -in test-noit.csr -out test-noit.crt -outdir . -keyfile test-ca.key -cert test-ca.crt -days 120
72
73 test-stratcon.key:
74         openssl genrsa -out test-stratcon.key
75
76 test-stratcon.csr:      test-stratcon.key
77         openssl req -key test-stratcon.key -days 365 -new -out test-stratcon.csr -config demo-openssl.cnf -subj "/C=US/ST=Maryland/O=OmniTI Labs/CN=stratcon"
78
79 test-stratcon.crt:      test-stratcon.csr test-ca.key
80         openssl ca -batch -config demo-openssl.cnf -in test-stratcon.csr -out test-stratcon.crt -outdir . -keyfile test-ca.key -cert test-ca.crt -days 120
81
82 test-ca.crl:    test-ca.key test-ca.crt badclient.key badclient.crt
83         openssl ca -config demo-openssl.cnf  -keyfile test-ca.key -cert test-ca.crt -revoke badclient.crt
84         openssl ca -config demo-openssl.cnf  -keyfile test-ca.key -cert test-ca.crt -gencrl -out  test-ca.crl
85
86 testcrl:        test-ca.crl
87
88 testcerts:      demoCA-dir test-noit.key test-noit.crt test-stratcon.key test-stratcon.crt test-ca.key test-ca.crt client.key client.crt badclient.key badclient.crt
89
90 clean-keys:
91         rm -f *.key *.csr *.crt *.crl *.pem
92         rm -rf demoCA
93
94 clean-tests:
95         rm -rf t/logs
96
97 distclean:      clean
98         rm -f Makefile
99
Note: See TracBrowser for help on using the browser.