Changeset 257eda63f97f5a4da420a3ef9ed0b8ee25ccc840

Show
Ignore:
Timestamp:
03/06/08 18:49:37 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1204829377 +0000
git-parent:

[fae36de7018c6dd78c9d31601985c2996a9991a2]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1204829377 +0000
Message:

move test certificate generation support into its own directory

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Makefile.in

    r919b09a r257eda6  
    11all: 
    22        (cd src && make) 
     3        (cd test && make) 
    34 
    45clean: 
    56        (cd src && make clean) 
     7        (cd test && make clean) 
  • configure.in

    re8bea7c r257eda6  
    396396src/utils/Makefile 
    397397src/noitedit/Makefile 
    398 ]) 
     398test/Makefile 
     399]) 
  • src/Makefile.in

    rfae36de r257eda6  
    7171        re2c -o $@ noit_tokenizer.re 
    7272 
    73 # This stuff if all cert stuff to make testing the daemons easier 
    74  
    75 demoCA-dir: 
    76         @mkdir -p demoCA 
    77         @touch demoCA/index.txt 
    78         @test -f demoCA/serial || echo 00 > demoCA/serial 
    79  
    80 test-ca.key: 
    81         openssl genrsa -out test-ca.key 
    82  
    83 test-ca.csr:    test-ca.key 
    84         openssl req -key test-ca.key -days 365 -new -out test-ca.csr 
    85  
    86 test-ca.crt:    test-ca.key test-ca.csr 
    87         openssl x509 -req -in test-ca.csr -signkey test-ca.key -out test-ca.crt 
    88  
    89 test.key: 
    90         openssl genrsa -out test.key 
    91  
    92 test.csr:       test.key 
    93         openssl req -key test.key -days 365 -new -out test.csr 
    94  
    95 test.crt:       test.csr test-ca.key 
    96         openssl ca -in test.csr -out test.crt -outdir . -keyfile test-ca.key -cert test-ca.crt -days 120 
    97  
    98 test-strat.key: 
    99         openssl genrsa -out test-strat.key 
    100  
    101 test-strat.csr: test-strat.key 
    102         openssl req -key test-strat.key -days 365 -new -out test-strat.csr 
    103  
    104 test-strat.crt: test-strat.csr test-ca.key 
    105         openssl ca -in test-strat.csr -out test-strat.crt -outdir . -keyfile test-ca.key -cert test-ca.crt -days 120 
    106  
    107 testcerts:      demoCA-dir test.key test.crt test-strat.key test-strat.crt test-ca.key test-ca.crt 
    108  
    10973clean-subdirs: 
    11074        for dir in $(SUBS) ; do \ 
     
    11276        done 
    11377 
    114 clean-keys: 
    115         test.key test.csr test.crt test-strat.key test-strat.csr test-strat.crt 
    116  
    11778clean:  clean-subdirs 
    11879        rm -f *.o noitd 
  • src/noit.conf

    r4330e3d r257eda6  
    3636    <sslconfig> 
    3737      <optional_no_ca>false</optional_no_ca> 
    38       <certificate_file>test.crt</certificate_file> 
    39       <key_file>test.key</key_file> 
    40       <ca_chain>test-ca.crt</ca_chain> 
     38      <certificate_file>../test/test.crt</certificate_file> 
     39      <key_file>../test/test.key</key_file> 
     40      <ca_chain>../test/test-ca.crt</ca_chain> 
    4141    </sslconfig> 
    4242    <consoles type="noit_console"> 
  • src/stratcon.conf

    r7de429d r257eda6  
    2121    </config> 
    2222    <sslconfig> 
    23       <key_file>test-strat.key</key_file> 
    24       <certificate_file>test-strat.crt</certificate_file> 
    25       <ca_chain>test-ca.crt</ca_chain> 
     23      <key_file>../test/test-strat.key</key_file> 
     24      <certificate_file>../test/test-strat.crt</certificate_file> 
     25      <ca_chain>../test/test-ca.crt</ca_chain> 
    2626    </sslconfig> 
    2727    <noit address="127.0.0.1" port="34332" />