root/test/Makefile.in

Revision 257eda63f97f5a4da420a3ef9ed0b8ee25ccc840, 1.6 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

move test certificate generation support into its own directory

  • Property mode set to 100644
Line 
1 CC=@CC@
2 CPPFLAGS=@CPPFLAGS@
3 CFLAGS=@CFLAGS@
4 LDFLAGS=@LDFLAGS@
5 AR=@AR@
6 RANLIB=@RANLIB@
7 LIBS=@LIBS@
8 PGLIBS=@PGLIBS@
9 INSTALL=@INSTALL@
10
11 prefix=@prefix@
12 exec_prefix=@exec_prefix@
13 bindir=@bindir@
14 sbindir=@sbindir@
15 libdir=@libdir@
16 includedir=${prefix}/include
17 libexecdir=@libexecdir@
18 datarootdir = @datarootdir@
19 mandir=@mandir@
20 mansubdir=@mansubdir@
21 docdir=${prefix}/@docdir@
22 sysconfdir=@sysconfdir@
23 srcdir=@srcdir@
24 top_srcdir=@top_srcdir@
25
26 all:    testcerts
27 clean:  clean-keys
28 # This stuff if all cert stuff to make testing the daemons easier
29
30 demoCA-dir:
31         @mkdir -p demoCA
32         @touch demoCA/index.txt
33         @test -f demoCA/serial || echo 00 > demoCA/serial
34
35 test-ca.key:
36         openssl genrsa -out test-ca.key
37
38 test-ca.csr:    test-ca.key
39         openssl req -key test-ca.key -days 365 -new -out test-ca.csr
40
41 test-ca.crt:    test-ca.key test-ca.csr
42         openssl x509 -req -in test-ca.csr -signkey test-ca.key -out test-ca.crt
43
44 test.key:
45         openssl genrsa -out test.key
46
47 test.csr:       test.key
48         openssl req -key test.key -days 365 -new -out test.csr
49
50 test.crt:       test.csr test-ca.key test-ca.crt
51         openssl ca -config demo-openssl.cnf -in test.csr -out test.crt -outdir . -keyfile test-ca.key -cert test-ca.crt -days 120
52
53 test-strat.key:
54         openssl genrsa -out test-strat.key
55
56 test-strat.csr: test-strat.key
57         openssl req -key test-strat.key -days 365 -new -out test-strat.csr
58
59 test-strat.crt: test-strat.csr test-ca.key
60         openssl ca -config demo-openssl.cnf -in test-strat.csr -out test-strat.crt -outdir . -keyfile test-ca.key -cert test-ca.crt -days 120
61
62 testcerts:      demoCA-dir test.key test.crt test-strat.key test-strat.crt test-ca.key test-ca.crt
63
64 clean-keys:
65         rm -f *.key *.csr *.crt *.pem
66         rm -rf demoCA
67
Note: See TracBrowser for help on using the browser.