diff options
author | Stef Walter <stefw@gnome.org> | 2013-02-06 16:03:15 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-02-06 16:52:32 +0800 |
commit | 83add78f2c14a083a8f3c1196382c11750be0251 (patch) | |
tree | 69b915378a86a2e8e975c95727926704d100a9d2 /tests/certificates/Makefile.am | |
parent | 04f9f5866a77ffe6a944a1b1e59b2f277bb87a9e (diff) | |
download | gsoc2013-empathy-83add78f2c14a083a8f3c1196382c11750be0251.tar gsoc2013-empathy-83add78f2c14a083a8f3c1196382c11750be0251.tar.gz gsoc2013-empathy-83add78f2c14a083a8f3c1196382c11750be0251.tar.bz2 gsoc2013-empathy-83add78f2c14a083a8f3c1196382c11750be0251.tar.lz gsoc2013-empathy-83add78f2c14a083a8f3c1196382c11750be0251.tar.xz gsoc2013-empathy-83add78f2c14a083a8f3c1196382c11750be0251.tar.zst gsoc2013-empathy-83add78f2c14a083a8f3c1196382c11750be0251.zip |
tests: Fix empathy-tls-test
* Create new certificates
* Add a make target for rebuilding the certificates in the future
https://bugzilla.gnome.org/show_bug.cgi?id=693190
Diffstat (limited to 'tests/certificates/Makefile.am')
-rw-r--r-- | tests/certificates/Makefile.am | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/tests/certificates/Makefile.am b/tests/certificates/Makefile.am index 08fefe9f1..65e71b9bb 100644 --- a/tests/certificates/Makefile.am +++ b/tests/certificates/Makefile.am @@ -1,3 +1,23 @@ EXTRA_DIST = \ - collabora-ca.cer \ - dhansak-collabora.cer + certificate-authority.cer \ + server-cert.cer + +# Not part of the build, but so we can easily repeat the process +# of generating the testing certificates +rebuild-certs: + openssl req -new -x509 -out certificate-authority.pem \ + -newkey rsa -keyout certificate-authority.key -nodes \ + -subj /CN=test-ca.empathy.gnome.org -days 2000 \ + -config cert-openssl.conf -set_serial 1 -extensions test_ca + openssl x509 -in certificate-authority.pem -outform DER \ + -out certificate-authority.cer + openssl req -new -outform PEM -out server-cert.req \ + -newkey rsa -keyout /dev/null -nodes \ + -subj /CN=test-server.empathy.gnome.org \ + -config cert-openssl.conf -extensions test_server + openssl x509 -req -in server-cert.req -days 2000 \ + -CA certificate-authority.pem -CAkey certificate-authority.key \ + -set_serial 888 -out server-cert.cer -outform DER + rm certificate-authority.key + rm certificate-authority.pem + rm server-cert.req
\ No newline at end of file |