root/test/Makefile.in

Revision 4908891ea99783a60dca14e56d1f6914acf64f43, 2.0 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 7 years ago)

fix this up to make it turn-key

  • 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 -config demo-openssl.cnf -subj "/C=US/ST=Maryland/O=OmniTI Labs/CN=Reconnoiter Test CA"
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-noit.key:
45         openssl genrsa -out test-noit.key
46
47 test-noit.csr:  test-noit.key
48         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"
49
50 test-noit.crt:  test-noit.csr test-ca.key test-ca.crt
51         openssl ca -config demo-openssl.cnf -in test-noit.csr -out test-noit.crt -outdir . -keyfile test-ca.key -cert test-ca.crt -days 120
52
53 test-stratcon.key:
54         openssl genrsa -out test-stratcon.key
55
56 test-stratcon.csr:      test-stratcon.key
57         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"
58
59 test-stratcon.crt:      test-stratcon.csr test-ca.key
60         openssl ca -config demo-openssl.cnf -in test-stratcon.csr -out test-stratcon.crt -outdir . -keyfile test-ca.key -cert test-ca.crt -days 120
61
62 testcerts:      demoCA-dir test-noit.key test-noit.crt test-stratcon.key test-stratcon.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.