diff options
author | Debarshi Ray <debarshir@gnome.org> | 2017-03-20 19:51:42 +0100 |
---|---|---|
committer | Debarshi Ray <debarshir@gnome.org> | 2017-03-20 20:30:53 +0100 |
commit | 4568299d28360e9a8a71a6fc28934750c0dadb3c (patch) | |
tree | 05765a0b8ebc26346874a304d1581a845c3f5095 | |
parent | 05d86a3f6e599207918a8d5b871bc3a89660dbab (diff) | |
download | empathy-4568299d28360e9a8a71a6fc28934750c0dadb3c.tar.gz |
tests: Retain the PEM formatted root certificate
In the subsequent commit, we will use GIO's GnuTLS backend to verify
the chain of TLS certificates instead of Gcr. This means that a
GckModule can no longer be used to feed our mock root certificates via
a PKCS#11 module. Instead we will have to create a mock GTlsDatabase,
and that needs the PEM formatted root certificate.
We will continue using the GckModule for pinned certificates.
https://bugzilla.gnome.org/show_bug.cgi?id=780160
-rw-r--r-- | tests/certificates/Makefile.am | 3 | ||||
-rw-r--r-- | tests/certificates/certificate-authority.cer | bin | 466 -> 466 bytes | |||
-rw-r--r-- | tests/certificates/certificate-authority.pem | 12 | ||||
-rw-r--r-- | tests/certificates/server-cert.cer | bin | 448 -> 448 bytes |
4 files changed, 13 insertions, 2 deletions
diff --git a/tests/certificates/Makefile.am b/tests/certificates/Makefile.am index 65e71b9bb..0ea5078b1 100644 --- a/tests/certificates/Makefile.am +++ b/tests/certificates/Makefile.am @@ -19,5 +19,4 @@ rebuild-certs: -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 + rm server-cert.req diff --git a/tests/certificates/certificate-authority.cer b/tests/certificates/certificate-authority.cer Binary files differindex 3cb8c7334..8915b8e2d 100644 --- a/tests/certificates/certificate-authority.cer +++ b/tests/certificates/certificate-authority.cer diff --git a/tests/certificates/certificate-authority.pem b/tests/certificates/certificate-authority.pem new file mode 100644 index 000000000..b226d0ee8 --- /dev/null +++ b/tests/certificates/certificate-authority.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCATegAwIBAgIBATANBgkqhkiG9w0BAQsFADAkMSIwIAYDVQQDDBl0ZXN0 +LWNhLmVtcGF0aHkuZ25vbWUub3JnMB4XDTE3MDMyMDE4NDk0NloXDTIyMDkxMDE4 +NDk0NlowJDEiMCAGA1UEAwwZdGVzdC1jYS5lbXBhdGh5Lmdub21lLm9yZzCBnzAN +BgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA2f/7NS4GMdznBEkFWBlkCFegv8GeSyx6 +BJyJyTr96YA4cXU7EVeM6D1VqPKuOzSu9WL/vEnXwwaCZbnbZ7zREnn+JNATzZF3 +71xRw7jzRT7jZVHkPJd1OTorUFIfqslNLwO3pWhI+b33zmGN7Gz30ZrlWT3rKNG0 +/1RYRA+OttMCAwEAAaMQMA4wDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQsFAAOB +gQB+rcAEmt0OhX6VsEfprER/hjpYgDEylmlJpRgGaanvfUPTUj1I7RnVK1hzm/pf +7OdeGFj4oOfbKd2A/xq3JClErsTMOvaKzPmElRubLoUpmBivwYfujm6pW6smUM0j +5eSQ/X56o6rHzwwgg/932kv8Lms+Gh7WSdLrihzvudKujQ== +-----END CERTIFICATE----- diff --git a/tests/certificates/server-cert.cer b/tests/certificates/server-cert.cer Binary files differindex a54ac8882..a87354a04 100644 --- a/tests/certificates/server-cert.cer +++ b/tests/certificates/server-cert.cer |