diff 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
line wrap: on
line diff
--- a/ui/tests/data/NOTES	Fri Mar 28 11:33:39 2014 +0000
+++ b/ui/tests/data/NOTES	Fri Mar 28 11:34:48 2014 +0000
@@ -21,10 +21,6 @@
 
 # List with 0 created manually by placing a \0 in the signature
 
-Random Data generated with:
-    openssl rand -out garbage_2MB 2000000
-    openssl rand -out random_500k 500000
-
 # Test server certificate:
 
     gen_key type=ec ec_curve=brainpoolP256r1 filename=valid_ssl_bp.key
@@ -41,3 +37,26 @@
     is_ca=1 max_pathlen=0 output_file=valid_ssl_rsa.pem
     cat valid_ssl_rsa.key >> valid_ssl_rsa.pem
 
+# Test list certificates (using the rsa key)
+
+for i in {1..30}
+do
+    gen_key filename=valid_ssl_rsa.key
+    cert_write issuer_name=CN=TestRootCA$i,O=Do_Not_Trust_Test,C=DE \
+    selfsign=1 issuer_key=valid_ssl_rsa.key \
+    not_before=20130101000000 not_after=20151231235959 \
+    is_ca=1 max_pathlen=0 output_file=valid_ssl_rsa.pem
+    CERT=$(cat valid_ssl_rsa.pem | grep -v "\-\-\-\-" | tr -d "\\n")
+    echo -e I:${CERT}\\r >> list-valid.txt
+done
+
+for i in {1..15}
+do
+    gen_key filename=valid_ssl_rsa.key
+    cert_write issuer_name=CN=TestRootCADelete$i,O=Do_Not_Trust_Test,C=DE \
+    selfsign=1 issuer_key=valid_ssl_rsa.key \
+    not_before=20130101000000 not_after=20151231235959 \
+    is_ca=1 max_pathlen=0 output_file=valid_ssl_rsa.pem
+    CERT=$(cat valid_ssl_rsa.pem | grep -v "\-\-\-\-" | tr -d "\\n")
+    echo -e R:${CERT}\\r >> list-valid.txt
+done

http://wald.intevation.org/projects/trustbridge/