Mercurial > trustbridge
comparison ui/tests/data/NOTES @ 234:a7317252a27c
Add more realistic test data
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 28 Mar 2014 11:34:48 +0000 |
parents | a7b8cb29f1f6 |
children | 534df06d5c67 |
comparison
equal
deleted
inserted
replaced
233:d773e540dec3 | 234:a7317252a27c |
---|---|
19 cp list-valid-signed.txt list-invalid-signed.txt | 19 cp list-valid-signed.txt list-invalid-signed.txt |
20 tail -1 list-valid.txt >> list-invalid-signed.txt | 20 tail -1 list-valid.txt >> list-invalid-signed.txt |
21 | 21 |
22 # List with 0 created manually by placing a \0 in the signature | 22 # List with 0 created manually by placing a \0 in the signature |
23 | 23 |
24 Random Data generated with: | |
25 openssl rand -out garbage_2MB 2000000 | |
26 openssl rand -out random_500k 500000 | |
27 | |
28 # Test server certificate: | 24 # Test server certificate: |
29 | 25 |
30 gen_key type=ec ec_curve=brainpoolP256r1 filename=valid_ssl_bp.key | 26 gen_key type=ec ec_curve=brainpoolP256r1 filename=valid_ssl_bp.key |
31 cert_write issuer_name=CN=127.0.0.1,O=Intevation\\ Test,C=DE \ | 27 cert_write issuer_name=CN=127.0.0.1,O=Intevation\\ Test,C=DE \ |
32 selfsign=1 issuer_key=valid_ssl_bp.key \ | 28 selfsign=1 issuer_key=valid_ssl_bp.key \ |
39 selfsign=1 issuer_key=valid_ssl_rsa.key \ | 35 selfsign=1 issuer_key=valid_ssl_rsa.key \ |
40 not_before=20130101000000 not_after=20151231235959 \ | 36 not_before=20130101000000 not_after=20151231235959 \ |
41 is_ca=1 max_pathlen=0 output_file=valid_ssl_rsa.pem | 37 is_ca=1 max_pathlen=0 output_file=valid_ssl_rsa.pem |
42 cat valid_ssl_rsa.key >> valid_ssl_rsa.pem | 38 cat valid_ssl_rsa.key >> valid_ssl_rsa.pem |
43 | 39 |
40 # Test list certificates (using the rsa key) | |
41 | |
42 for i in {1..30} | |
43 do | |
44 gen_key filename=valid_ssl_rsa.key | |
45 cert_write issuer_name=CN=TestRootCA$i,O=Do_Not_Trust_Test,C=DE \ | |
46 selfsign=1 issuer_key=valid_ssl_rsa.key \ | |
47 not_before=20130101000000 not_after=20151231235959 \ | |
48 is_ca=1 max_pathlen=0 output_file=valid_ssl_rsa.pem | |
49 CERT=$(cat valid_ssl_rsa.pem | grep -v "\-\-\-\-" | tr -d "\\n") | |
50 echo -e I:${CERT}\\r >> list-valid.txt | |
51 done | |
52 | |
53 for i in {1..15} | |
54 do | |
55 gen_key filename=valid_ssl_rsa.key | |
56 cert_write issuer_name=CN=TestRootCADelete$i,O=Do_Not_Trust_Test,C=DE \ | |
57 selfsign=1 issuer_key=valid_ssl_rsa.key \ | |
58 not_before=20130101000000 not_after=20151231235959 \ | |
59 is_ca=1 max_pathlen=0 output_file=valid_ssl_rsa.pem | |
60 CERT=$(cat valid_ssl_rsa.pem | grep -v "\-\-\-\-" | tr -d "\\n") | |
61 echo -e R:${CERT}\\r >> list-valid.txt | |
62 done |