diff ui/tests/data/NOTES @ 1087:7191addd8a53

(issue124) Add documentation about internal server setup and test keys
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 12 Sep 2014 15:13:58 +0200
parents f56c4869aa18
children 4a3a482dc337
line wrap: on
line diff
--- a/ui/tests/data/NOTES	Fri Sep 12 13:09:02 2014 +0200
+++ b/ui/tests/data/NOTES	Fri Sep 12 15:13:58 2014 +0200
@@ -130,3 +130,57 @@
 not_before=20130101000000 not_after=20151231235959 \
 key_usage=digital_signature \
 ns_cert_type=object_signing
+
+# Testserver mit hiawatha
+apt-get install build-essential cmake libxslt-dev libxml2-dev libz-dev
+
+    wget https://www.hiawatha-webserver.org/files/hiawatha-9.7.tar.gz
+    sha256sum hiawatha-9.7.tar.gz
+
+e8581336883b7b963f38572f6396f8c47b43e5bedd3147d052fa3652e6c0ed86 hiawatha-9.7.tar.gz
+
+    mkdir hiawatha-prefix
+    tar -xf hiawatha-9.7.tar.gz
+    cd hiawatha-9.7
+    mkdir build
+    cd build
+    cmake .. -DCMAKE_INSTALL_PREFIX=/home/intevation/hiawatha-prefix
+    make && make install
+
+# Root CA
+    gen_key filename=ssl_root.key
+    cert_write issuer_name="CN=TrustBridge SSL Test CA,O=Public secret do not trust this,C=DE" \
+    selfsign=1 issuer_key=ssl_root.key \
+    not_before=20130101000000 not_after=20151231235959 \
+    is_ca=1 max_pathlen=0 output_file=ssl_root.pem
+
+# SSL cert
+    gen_key type=ec ec_curve=brainpoolP256r1 filename=ssl-test.key
+    cert_req filename=ssl-test.key output_file=ssl-test.csr \
+    subject_name="CN=tb-devel.intevation.de,O=Public secret do not trust this,C=DE" \
+    ns_cert_type=ssl_server
+
+# Sign it
+    cert_write request_file=ssl-test.csr issuer_crt=ssl_root.pem \
+    issuer_key=ssl_root.key output_file=ssl-test.pem \
+    not_before=20130101000000 not_after=20151231235959 \
+    ns_cert_type=ssl_server
+
+    cat ssl-test.pem ssl-test.key > ssl-test-combined.pem
+
+# Kopieren des Zertifikats nach /home/intevation auf dem testserver
+# Editieren von /home/intevation/hiawatha-prefix/etc/hiawatha
+
+# Binding settings:
+    Port = 44413
+    SSLcertFile = /home/intevation/ssl-test-combined.pem
+
+# Default website settings
+    Hostname = thetis.intevation.de:44413
+    WebsiteRoot = /home/intevation/m13-files
+    StartFile = index.html
+
+# Trustbridge download ordner nach /home/intevation/m13-files kopieren.
+
+    screen -R server
+    /home/intevation/hiawatha-prefix/sbin/hiawatha -d

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