comparison 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
comparison
equal deleted inserted replaced
568:8dbfd0cb534b 569:6677d4ecb6fd
85 85
86 # NSS 86 # NSS
87 mkdir nss 87 mkdir nss
88 certutil -d nss -A -i valid_ssl_rsa.pem -n "test" -t c,C 88 certutil -d nss -A -i valid_ssl_rsa.pem -n "test" -t c,C
89 certutil -d nss -D -n "test" 89 certutil -d nss -D -n "test"
90
91 # Code signing
92 mkdir codesign
93 cd codesign
94 # Root CA
95 gen_key filename=codesigning_root.key
96 cert_write issuer_name="CN=Public TrustBridge Test,O=Public secret do not trust this,C=DE" \
97 selfsign=1 issuer_key=codesigning_root.key \
98 not_before=20130101000000 not_after=20151231235959 \
99 is_ca=1 max_pathlen=0 output_file=codesigning_root.pem
100
101 # Codesign cert
102 gen_key filename=codesigning.key
103 cert_req filename=codesigning.key output_file=codesigning.csr \
104 subject_name="CN=Public TrustBridge codesigning test,O=Public secret do not trust this,C=DE" \
105 key_usage=digital_signature \
106 ns_cert_type=object_signing
107
108 # Sign it:
109 cert_write request_file=codesigning.csr issuer_crt=codesigning_root.pem \
110 issuer_key=codesigning_root.key output_file=codesigning.pem \
111 not_before=20130101000000 not_after=20151231235959 \
112 key_usage=digital_signature \
113 ns_cert_type=object_signing
114
115 osslsigncode sign -certs codesigning.pem -key codesigning.key \
116 -n "TrustBridgeTest" -i https://wald.intevation.org/projects/trustbridge/ \
117 -in ~/ubuntu/src/m13-repo/build-windows/TrustBridge-0.6+21-aee3eb10bbba.exe \
118 -out TrustBridge-0.6+21-aee3eb10bbba-signed.exe

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