comparison 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
comparison
equal deleted inserted replaced
1086:93325618ac7b 1087:7191addd8a53
128 cert_write request_file=codesigning-other.csr issuer_crt=codesigning_root.pem \ 128 cert_write request_file=codesigning-other.csr issuer_crt=codesigning_root.pem \
129 issuer_key=codesigning_root.key output_file=codesigning-other.pem \ 129 issuer_key=codesigning_root.key output_file=codesigning-other.pem \
130 not_before=20130101000000 not_after=20151231235959 \ 130 not_before=20130101000000 not_after=20151231235959 \
131 key_usage=digital_signature \ 131 key_usage=digital_signature \
132 ns_cert_type=object_signing 132 ns_cert_type=object_signing
133
134 # Testserver mit hiawatha
135 apt-get install build-essential cmake libxslt-dev libxml2-dev libz-dev
136
137 wget https://www.hiawatha-webserver.org/files/hiawatha-9.7.tar.gz
138 sha256sum hiawatha-9.7.tar.gz
139
140 e8581336883b7b963f38572f6396f8c47b43e5bedd3147d052fa3652e6c0ed86 hiawatha-9.7.tar.gz
141
142 mkdir hiawatha-prefix
143 tar -xf hiawatha-9.7.tar.gz
144 cd hiawatha-9.7
145 mkdir build
146 cd build
147 cmake .. -DCMAKE_INSTALL_PREFIX=/home/intevation/hiawatha-prefix
148 make && make install
149
150 # Root CA
151 gen_key filename=ssl_root.key
152 cert_write issuer_name="CN=TrustBridge SSL Test CA,O=Public secret do not trust this,C=DE" \
153 selfsign=1 issuer_key=ssl_root.key \
154 not_before=20130101000000 not_after=20151231235959 \
155 is_ca=1 max_pathlen=0 output_file=ssl_root.pem
156
157 # SSL cert
158 gen_key type=ec ec_curve=brainpoolP256r1 filename=ssl-test.key
159 cert_req filename=ssl-test.key output_file=ssl-test.csr \
160 subject_name="CN=tb-devel.intevation.de,O=Public secret do not trust this,C=DE" \
161 ns_cert_type=ssl_server
162
163 # Sign it
164 cert_write request_file=ssl-test.csr issuer_crt=ssl_root.pem \
165 issuer_key=ssl_root.key output_file=ssl-test.pem \
166 not_before=20130101000000 not_after=20151231235959 \
167 ns_cert_type=ssl_server
168
169 cat ssl-test.pem ssl-test.key > ssl-test-combined.pem
170
171 # Kopieren des Zertifikats nach /home/intevation auf dem testserver
172 # Editieren von /home/intevation/hiawatha-prefix/etc/hiawatha
173
174 # Binding settings:
175 Port = 44413
176 SSLcertFile = /home/intevation/ssl-test-combined.pem
177
178 # Default website settings
179 Hostname = thetis.intevation.de:44413
180 WebsiteRoot = /home/intevation/m13-files
181 StartFile = index.html
182
183 # Trustbridge download ordner nach /home/intevation/m13-files kopieren.
184
185 screen -R server
186 /home/intevation/hiawatha-prefix/sbin/hiawatha -d

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