diff ui/tests/data/NOTES @ 236:bd83b038829d

Merged
author Sascha Wilde <wilde@intevation.de>
date Fri, 28 Mar 2014 13:05:21 +0100
parents a7317252a27c
children 534df06d5c67
line wrap: on
line diff
--- a/ui/tests/data/NOTES	Fri Mar 28 13:04:59 2014 +0100
+++ b/ui/tests/data/NOTES	Fri Mar 28 13:05:21 2014 +0100
@@ -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/