[empathy] tests: Retain the PEM formatted root certificate



commit 526867ccf70de0d467d0a6f50d6d7e6499b860ed
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Mar 20 19:51:42 2017 +0100

    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

 tests/certificates/Makefile.am               |    3 +--
 tests/certificates/certificate-authority.cer |  Bin 466 -> 466 bytes
 tests/certificates/certificate-authority.pem |   12 ++++++++++++
 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 65e71b9..0ea5078 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
index 3cb8c73..8915b8e 100644
Binary files a/tests/certificates/certificate-authority.cer and 
b/tests/certificates/certificate-authority.cer differ
diff --git a/tests/certificates/certificate-authority.pem b/tests/certificates/certificate-authority.pem
new file mode 100644
index 0000000..b226d0e
--- /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
index a54ac88..a87354a 100644
Binary files a/tests/certificates/server-cert.cer and b/tests/certificates/server-cert.cer differ


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]