diff ui/tests/data/NOTES @ 569:6677d4ecb6fd

Add codesignging certificates and Notes how they were generated. The keys are intended to be public as they are test keys that hold no value.
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 23 May 2014 10:21:20 +0000
parents 2e662290e3c9
children 6c4fff146999
line wrap: on
line diff
--- a/ui/tests/data/NOTES	Fri May 23 10:43:04 2014 +0200
+++ b/ui/tests/data/NOTES	Fri May 23 10:21:20 2014 +0000
@@ -87,3 +87,32 @@
 mkdir nss
 certutil -d nss -A -i valid_ssl_rsa.pem -n "test" -t c,C
 certutil -d nss -D -n "test"
+
+# Code signing
+mkdir codesign
+cd codesign
+# Root CA
+gen_key filename=codesigning_root.key
+cert_write issuer_name="CN=Public TrustBridge Test,O=Public secret do not trust this,C=DE" \
+selfsign=1 issuer_key=codesigning_root.key \
+not_before=20130101000000 not_after=20151231235959 \
+is_ca=1 max_pathlen=0 output_file=codesigning_root.pem
+
+# Codesign cert
+gen_key filename=codesigning.key
+cert_req filename=codesigning.key output_file=codesigning.csr \
+subject_name="CN=Public TrustBridge codesigning test,O=Public secret do not trust this,C=DE" \
+key_usage=digital_signature \
+ns_cert_type=object_signing
+
+# Sign it:
+cert_write request_file=codesigning.csr issuer_crt=codesigning_root.pem \
+issuer_key=codesigning_root.key output_file=codesigning.pem \
+not_before=20130101000000 not_after=20151231235959 \
+key_usage=digital_signature \
+ns_cert_type=object_signing
+
+osslsigncode sign -certs codesigning.pem -key codesigning.key \
+      -n "TrustBridgeTest" -i https://wald.intevation.org/projects/trustbridge/ \
+      -in ~/ubuntu/src/m13-repo/build-windows/TrustBridge-0.6+21-aee3eb10bbba.exe \
+      -out TrustBridge-0.6+21-aee3eb10bbba-signed.exe

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