changeset 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 93325618ac7b
children 508c96e72f62
files ui/tests/data/NOTES ui/tests/data/ssl-test.pem ui/tests/data/ssl_root.key ui/tests/data/ssl_root.pem
diffstat 4 files changed, 160 insertions(+), 0 deletions(-) [+]
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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ui/tests/data/ssl-test.pem	Fri Sep 12 15:13:58 2014 +0200
@@ -0,0 +1,23 @@
+-----BEGIN CERTIFICATE-----
+MIIDwjCCAaqgAwIBAgIBATANBgkqhkiG9w0BAQUFADBZMSAwHgYDVQQDExdUcnVz
+dEJyaWRnZSBTU0wgVGVzdCBDQTEoMCYGA1UEChMfUHVibGljIHNlY3JldCBkbyBu
+b3QgdHJ1c3QgdGhpczELMAkGA1UEBhMCREUwHhcNMTMwMTAxMDAwMDAwWhcNMTUx
+MjMxMjM1OTU5WjBYMR8wHQYDVQQDExZ0Yi1kZXZlbC5pbnRldmF0aW9uLmRlMSgw
+JgYDVQQKEx9QdWJsaWMgc2VjcmV0IGRvIG5vdCB0cnVzdCB0aGlzMQswCQYDVQQG
+EwJERTBaMBQGByqGSM49AgEGCSskAwMCCAEBBwNCAARDyErp7HHK72FWzjC/S3Tf
+FnU6UuUAt9A46KOQpdxDYnRTg0bsdXnu2Pdh0g/Hj8vVe1rvyVrEMux4LLnL8q/1
+o2AwXjAJBgNVHRMEAjAAMB0GA1UdDgQWBBSeaZrzvOqRFK/HS2+ipUxQ4WE8kzAf
+BgNVHSMEGDAWgBRrgmr4LKgEyDNB0FdDpty3dHHZ3zARBglghkgBhvhCAQEEBAMC
+AEAwDQYJKoZIhvcNAQEFBQADggIBAEgWk/jA7wH4+5xr18WoA7v+VgNGnmJom3bA
+kMA6y/iXaqIjbP+KRNvM32so4a3V2Q453DVdj2aaUW4RlcrSq+4G7XmSS8i5FvY3
+L/OMMvMao26ZMKmSDTpgTAI/fLq7q56T+WSUbUex6r0K5ECPDw1fmfDwCcxjkWoI
+YGGmEPkRUvAnaD9PeuUd0ldL85wRxZ02PlOKAQcGWG7BvTj3tP8CeXfR9vTDO4t1
+5DgTHz/ug3DtF8oJE+CVT0QsfbTYyHiUbLlpZz6wJNYkWlb7iYb1dO4yVx3k8xhW
+zvm3id6+8nPsTbt6I5P428t3+rlr05lrNdiaATTOzvRgp25jSBJHY1uIYyYBcCAP
+vrtb5xkSw21uzRy2I6aZZYrYuN9GLMzBS3C5IqkiQ8gFw4Q6iFNMJIgAo8oFHtr2
+Ry3Vqrw9xqLuSYdAwje1gU8nX5oWOYd1WedLBemVQoxkwBJi/9V2O+oytOr47XnZ
+Ngyvcvn3SkdO77sLQweJsDnIEac4ON/ZCajBHd0lKkGJ3xqx6e4cxORZ22rjz0Pf
+EZm0ZzqlHe2zw223FMghRLDHUhABVPstaXKH57mRivwNex2JTPpC5RrwPwRCC9B4
+X6xY6TzZfc976UCCPof5Pn4kHBEmgycyRdA4fsqO3v5pm10GJ2hHiI/meghP0lE1
+ab374f0o
+-----END CERTIFICATE-----
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ui/tests/data/ssl_root.key	Fri Sep 12 15:13:58 2014 +0200
@@ -0,0 +1,51 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIJKgIBAAKCAgEAtMBUHwHawNLTouyz0d1cmjdvtZTI6eHSyxozmwNBF8bKagq9
+zsi1Tmb2nZDy5oqEajArIvJia92d+L1c+8KooSoBNIEVIE8igO/UiVdbhDK73atm
+RuHG6RzWvSJW2TWQ7ZQXuZUXsihF8xxr/7cQMjql+D/jGzj+IlbrQZsjPnn4kH3j
+XdQUHBHCJJ3Blauii/AVo/iUpx40WtmYyoGg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C1UZSbSaghRDoB1ab4CVi616GvF6Py1kTsWo5tUMj
+ynLImxgpKbSi7QPausZcMd+w/QJJ7NEUsPszGsbRTycFWJ29UdpZONSzKmajF8Fn
+xH7MQJkCggEARVsIr2eKRbLCc62TYktmLgfQEr14YGCd2h3WqU0y4XbIZei4o6+E
+dV+0EH6+afSNmCIxLJeProWquezhNrKmGdgLn+N35eKW+Qp1C5SL+V1g3f6psf5b
+WkVb+PxXUqWAtXul/C4y76mpuI1rcqgBhp1ZXKYhG6aKTqAA/l0D9svm0SjM1CwS
+Kpm6BBBH4LSWTiCydKEV+jTGAHPI8F2O4nW/0SuLlzYDdZZZuml9rQM0d2x+YQbv
+h+A+4/sP+KyflvHTqxu6ULCWG2JIauIWLUHNw1guvWm8CgyAnoYIsu9BLeJye7Uq
+sOsW7o5avlNkdXpaIBrIxEpjmB0M+a0SqwKCAQEAv2LRIzq4OylBSceryZG077li
+Fqr3jXlRUjfpjjMSnJEyJE+Iji2e8NplYwIfCRm/wCGNjummgHhi+7wZyU3C5dCc
+wQhwZ0kIc4i1IUBSfILedVvMQe1/J32tRUGHuDw+LSjLNaXnDNyhq7Qqjrk+WWl0
+kO3Lxlm0UpO4nsnpn3gyGN9cGnhhKsatYKn3Dp9r7aqBRsTo2BTRBn9rH0vPtTTe
+0r8sDTkFJSnpZzXXlEJWhLWd0xiD73eJnDjHFQSGnqy2wST3QiQHsImG6j9o7y5w
+hi6sqGTBLqasrlO7togs+3wsE4Kfp1i83CoIbFvCX8+yBsIG7ah3oIlsYBArZQ==
+-----END RSA PRIVATE KEY-----
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ui/tests/data/ssl_root.pem	Fri Sep 12 15:13:58 2014 +0200
@@ -0,0 +1,32 @@
+-----BEGIN CERTIFICATE-----
+MIIFgDCCA2igAwIBAgIBATANBgkqhkiG9w0BAQUFADBZMSAwHgYDVQQDExdUcnVz
+dEJyaWRnZSBTU0wgVGVzdCBDQTEoMCYGA1UEChMfUHV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