Blame SOURCES/0006-tests-use-self-generated-certificate-to-sign-federat.patch

f2be37
From 12a3f6c10ee3d5f321a751cf6c4cb7f63313582e Mon Sep 17 00:00:00 2001
f2be37
From: Jakub Hrozek <jhrozek@redhat.com>
f2be37
Date: Thu, 13 Jun 2019 13:03:04 +0200
f2be37
Subject: [PATCH] tests: use self-generated certificate to sign federation
f2be37
 metadata file (#33823)
f2be37
f2be37
---
f2be37
 tests/basic_tests.c                           | 13 +---
f2be37
 tests/data/lasso.crt                          | 23 +++++++
f2be37
 tests/data/lasso.csr                          | 15 ++++
f2be37
 tests/data/lasso.key                          | 27 ++++++++
f2be37
 .../metadata/metadata-federation-renater.crt  | 15 ----
f2be37
 tests/data/metadata/renater-metadata.xml      | 69 +++++++++++--------
f2be37
 tests/data/rootCA.crt                         | 32 +++++++++
f2be37
 tests/data/rootCA.key                         | 51 ++++++++++++++
f2be37
 tests/data/rootCA.srl                         |  1 +
f2be37
 9 files changed, 192 insertions(+), 54 deletions(-)
f2be37
 create mode 100644 tests/data/lasso.crt
f2be37
 create mode 100644 tests/data/lasso.csr
f2be37
 create mode 100644 tests/data/lasso.key
f2be37
 delete mode 100644 tests/data/metadata/metadata-federation-renater.crt
f2be37
 create mode 100644 tests/data/rootCA.crt
f2be37
 create mode 100644 tests/data/rootCA.key
f2be37
 create mode 100644 tests/data/rootCA.srl
f2be37
f2be37
diff --git a/tests/basic_tests.c b/tests/basic_tests.c
f2be37
index c08cab69..84999a17 100644
f2be37
--- a/tests/basic_tests.c
f2be37
+++ b/tests/basic_tests.c
f2be37
@@ -1983,24 +1983,13 @@ START_TEST(test13_test_lasso_server_load_metadata)
f2be37
 	block_lasso_logs;
f2be37
 	check_good_rc(lasso_server_load_metadata(server, LASSO_PROVIDER_ROLE_IDP,
f2be37
 				TESTSDATADIR "/metadata/renater-metadata.xml",
f2be37
-				TESTSDATADIR "/metadata/metadata-federation-renater.crt",
f2be37
+				TESTSDATADIR "/rootCA.crt",
f2be37
 				&blacklisted_1, &loaded_entity_ids,
f2be37
 				LASSO_SERVER_LOAD_METADATA_FLAG_DEFAULT));
f2be37
 	unblock_lasso_logs;
f2be37
 	check_equals(g_hash_table_size(server->providers), 110);
f2be37
 	check_equals(g_list_length(loaded_entity_ids), 110);
f2be37
 
f2be37
-#if 0
f2be37
-	/* UK federation file are too big to distribute (and I don't even known if it's right to do
f2be37
-	 * it, disable this test for now ) */
f2be37
-	check_good_rc(lasso_server_load_metadata(server, LASSO_PROVIDER_ROLE_IDP,
f2be37
-				TESTSDATADIR "/ukfederation-metadata.xml",
f2be37
-				TESTSDATADIR "/ukfederation.pem",
f2be37
-				&blacklisted_1, &loaded_entity_ids,
f2be37
-				LASSO_SERVER_LOAD_METADATA_FLAG_DEFAULT));
f2be37
-	check_equals(g_list_length(loaded_entity_ids), 283);
f2be37
-	check_equals(g_hash_table_size(server->providers), 393);
f2be37
-#endif
f2be37
 	lasso_release_list_of_strings(loaded_entity_ids);
f2be37
 
f2be37
 	lasso_release_gobject(server);
f2be37
diff --git a/tests/data/lasso.crt b/tests/data/lasso.crt
f2be37
new file mode 100644
f2be37
index 00000000..568a0b9c
f2be37
--- /dev/null
f2be37
+++ b/tests/data/lasso.crt
f2be37
@@ -0,0 +1,23 @@
f2be37
+-----BEGIN CERTIFICATE-----
f2be37
+MIID6zCCAdMCFALT+lN2uLJWF7p2xOo65/5KwxixMA0GCSqGSIb3DQEBCwUAMEUx
f2be37
+CzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRl
f2be37
+cm5ldCBXaWRnaXRzIFB0eSBMdGQwIBcNMTkwNjExMDc0NTU2WhgPMjI5MzAzMjUw
f2be37
+NzQ1NTZaMB0xCzAJBgNVBAYTAkZSMQ4wDAYDVQQDDAVMYXNzbzCCASIwDQYJKoZI
f2be37
+hvcNAQEBBQADggEPADCCAQoCggEBAOIS/WATGMJsv7OvgrjpYmAW3RmojVp4cHi0
f2be37
+17HelWVZ5adX3zSlj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DtsomJp2RK7lzjVPXAlFUmld88WgqdJwp9GSvMEktA0=
f2be37
+-----END CERTIFICATE-----
f2be37
diff --git a/tests/data/lasso.csr b/tests/data/lasso.csr
f2be37
new file mode 100644
f2be37
index 00000000..c450e1b4
f2be37
--- /dev/null
f2be37
+++ b/tests/data/lasso.csr
f2be37
@@ -0,0 +1,15 @@
f2be37
+-----BEGIN CERTIFICATE REQUEST-----
f2be37
+MIICYjCCAUoCAQAwHTELMAkGA1UEBhMCRlIxDjAMBgNVBAMMBUxhc3NvMIIBIjAN
f2be37
+BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4hL9YBMYwmy/s6+CuOliYBbdGaiN
f2be37
+WnhweLTXsd6VZVnlp1ffNKWN5yalvVRBwE3MQNvXm06c07vTw73h8UtaJZF+NhZr
f2be37
+VBg4uRnqQcBHbIlOSEE1CXfboroGcmRagKwSuRdrXrTz7r6tdH70pyEH+UtJjcOq
f2be37
+Hwvo3uyoT7HIPVnwczeYez0IzhysikI9pnzT/I18E+o8DZm/i4gGvBIXfas+eHVy
f2be37
+Im4gpCCOcJA5ooLaP5WzK2C2GuIjQ9VHMLtY8AlF5Brrk3+LvbWMbqs95zBVwJL0
f2be37
+bpyYb6ymroYRFR7ucVV01nmxHM2wa4OkR2Z4JLWkI+1baG5+by+q+3D1mQIDAQAB
f2be37
+oAAwDQYJKoZIhvcNAQELBQADggEBAJcoM7bn2yEElJjpX8mYuawWwlNdLOCyIPCc
f2be37
+tr6b61CmVDVntWw61fExrg+n1b5uOVuUAEaYNutw6nypzrfvr4wjGKxbl/jTSJCM
f2be37
+WHLl0/+IGQgr41SbRaySA1Y1hdJEd1ummH07sd7FfQNN/T/zLGaM0CI2/yj89VRk
f2be37
+BJwiSwbFp1zqntoITQPjo/vpWAqahqNpSKR+C5l1f870wVI2wPg89McRw35EACdx
f2be37
+Pys8g15+3eKBRTD24eOSWDAL4iDz1jh8ejwtuPjZCQRgg7pkV7uK9Qq4XbStW8AR
f2be37
+JftZ9BBmUOkpdTY0ml6uNojI5u3J/A8KL0UHeiOGLzEy6l64qjE=
f2be37
+-----END CERTIFICATE REQUEST-----
f2be37
diff --git a/tests/data/lasso.key b/tests/data/lasso.key
f2be37
new file mode 100644
f2be37
index 00000000..d6ee4142
f2be37
--- /dev/null
f2be37
+++ b/tests/data/lasso.key
f2be37
@@ -0,0 +1,27 @@
f2be37
+-----BEGIN RSA PRIVATE KEY-----
f2be37
+MIIEpAIBAAKCAQEA4hL9YBMYwmy/s6+CuOliYBbdGaiNWnhweLTXsd6VZVnlp1ff
f2be37
+NKWN5yalvVRBwE3MQNvXm06c07vTw73h8UtaJZF+NhZrVBg4uRnqQcBHbIlOSEE1
f2be37
+CXfboroGcmRagKwSuRdrXrTz7r6tdH70pyEH+UtJjcOqHwvo3uyoT7HIPVnwczeY
f2be37
+ez0IzhysikI9pnzT/I18E+o8DZm/i4gGvBIXfas+eHVyIm4gpCCOcJA5ooLaP5Wz
f2be37
+K2C2GuIjQ9VHMLtY8AlF5Brrk3+LvbWMbqs95zBVwJL0bpyYb6ymroYRFR7ucVV0
f2be37
+1nmxHM2wa4OkR2Z4JLWkI+1baG5+by+q+3D1mQIDAQABAoIBAClNONcFhh93CKrG
f2be37
+JMatdJiDdM9MOM7PdBTJTSKkvHxwqQEij5epqzwQlnT5YK3GSMuMnl40RXh1NyHq
f2be37
+nc2ca5KzevBctiz949cFQgPTIflVOGUA7LSXHhwjiiv544LgbOc9vRLnUi1Kzpua
f2be37
+2g1yfmdv9rcciQb1AQ1BBRrSKvfyD410KojJXwunYx32hrHdnhPwC3xyg6BEMpq9
f2be37
+PtcnTvFY/iDeyzYLwAwJb2xdTCpg7okd1KthtohS740Y0uS+UVaEDK7xOIj+CNIq
f2be37
+ii+j0fv5N5fjke8TdUszLWkDYQQ9BTJWFOjJ72FZs9J8pk7RlNhnt6tEoZ6866+w
f2be37
+nprmJwUCgYEA9VWT0FswnSnm+lkRP7vc/SJYTg6zD2BrGOKEo58L8TObb242G+Fs
f2be37
+JteMvdVm14GublmqXZv6Md5x5iVh3kRlu+8dbM5WnBNpwt6mGZPK7if5K/X1qiJg
f2be37
+BeroAX/KuVjSHBYVDFfHqPQg146RFcj/q7aCsqc+aMwgdUZ8OlBjRf8CgYEA6+cP
f2be37
+GG9VOlXWZ2RzSBoKrvxJgSQRpgVXeJAr1BWZ+pJVGIft3zSbeJ30nsUuob61UDVH
f2be37
+g6HzjOUQWHyK4wq2gyK3kOw/Aii6z4REXDVMVq3OgqaE4Fw+MH31ci8JILU415ZY
f2be37
+DQGo++E87tbSgp32gqou7Aj7Y4Sfvx+V/da4NGcCgYAv+tGSsRLb2cMLePnPnh0F
f2be37
+AH+GnIdWXYP0dPB903ARdwdSDprUbwyouAUVZzPat8j2WeDgt82BjUB3Qx5Vysie
f2be37
+rY/ypJP5qC5J5yNS4z2PwA+SEmM+J8Thw2QmTujFwOIujf8Fz/EDUONPZNlpCks+
f2be37
+OM5sxBqHgkxiwysueGRB3wKBgQCWwXDaMrwKrbR5Gq65kzrknQH0b7J/oMZHnAsG
f2be37
+XE+s3DtZk/SmQh5hNMCRfn3Qi+mfOo1bR/I3RmPtyJmRgtUkdNlO2kth+9l2qJZv
f2be37
+PvhsJGLnB7e/EfQEVVq3/+sbZfTPgZr/pOHzJfwkvlCFfKF+23dlDFBrRuQ35d2a
f2be37
+/M93XQKBgQCmAatw/7+z/CS6HinOW7W4k77eQ4wHb8XwzTl8T/5mf6KzejDUuEpZ
f2be37
+hi4ZMAZqNywiJo7UOu6APVzRU7qF6Dbg4eIZWtIocMhp19kUArAPz7NcrghXsTIZ
f2be37
+UdBWeG3kgUa5Q6d/D2OpWHK9S8LRdUL4/H0WZoqDOoDpJwKpljevyg==
f2be37
+-----END RSA PRIVATE KEY-----
f2be37
diff --git a/tests/data/metadata/metadata-federation-renater.crt b/tests/data/metadata/metadata-federation-renater.crt
f2be37
deleted file mode 100644
f2be37
index b6117441..00000000
f2be37
--- a/tests/data/metadata/metadata-federation-renater.crt
f2be37
+++ /dev/null
f2be37
@@ -1,15 +0,0 @@
f2be37
------BEGIN CERTIFICATE-----
f2be37
-MIICZTCCAc6gAwIBAgIEScn+qTANBgkqhkiG9w0BAQUFADB3MQswCQYDVQQGEwJG
f2be37
-UjEQMA4GA1UEChMHUkVOQVRFUjFWMFQGA1UEAxNNQ2VydGlmaWNhdCBkZSBzaWdu
f2be37
-YXR1cmUgZGVzIG1ldGEgZG9ubmVlcyBkZSBsYSBmZWRlcmF0aW9uIEVkdWNhdGlv
f2be37
-bi1SZWNoZXJjaGUwHhcNMDkwMzI1MDk1MTM3WhcNMTkwMzIzMDk1MTM3WjB3MQsw
f2be37
-CQYDVQQGEwJGUjEQMA4GA1UEChMHUkVOQVRFUjFWMFQGA1UEAxNNQ2VydGlmaWNh
f2be37
-dCBkZSBzaWduYXR1cmUgZGVzIG1ldGEgZG9ubmVlcyBkZSBsYSBmZWRlcmF0aW9u
f2be37
-IEVkdWNhdGlvbi1SZWNoZXJjaGUwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGB
f2be37
-AJBXcLIguokGiytYSOrgmU6fN+1DXK4eaquvFGMaswuhcRPD4tXtSs8CGxPP8/VF
f2be37
-Mpcry04lfPA3mpwDis47hsvmLqGJVmfSuvkDsPx+I325h4WqGzEV8kfttkJSi8D0
f2be37
-QLKk9wseA+BHzoBpU6e5uWmGqfWJgbZlcUuYKCIE2nL/AgMBAAEwDQYJKoZIhvcN
f2be37
-AQEFBQADgYEAT0rUS5GTtqW9a0pAv0PjieSS6bW3KG3Mtn0jC1dmav6X9fbhhmFL
f2be37
-1XSC9WnCU2UD3986EWWYKhN2INHghHE/fQGveVwdcVSSt601OpAsUF18tx0vHqkf
f2be37
-Shcj7mteq59Gv4hOE8U1Urd/pSRaIO3G42X6/L/AlXeDkicfGZHhq7Q=
f2be37
------END CERTIFICATE-----
f2be37
diff --git a/tests/data/metadata/renater-metadata.xml b/tests/data/metadata/renater-metadata.xml
f2be37
index 868f9259..70517100 100644
f2be37
--- a/tests/data/metadata/renater-metadata.xml
f2be37
+++ b/tests/data/metadata/renater-metadata.xml
f2be37
@@ -1,4 +1,5 @@
f2be37
-<EntitiesDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Name="https://federation.renater.fr/" validUntil="2011-05-23T14:24:02Z" xsi:schemaLocation="urn:oasis:names:tc:SAML:2.0:metadata saml-schema-metadata-2.0.xsd urn:mace:shibboleth:metadata:1.0 shibboleth-metadata-1.0.xsd http://www.w3.org/2000/09/xmldsig# xmldsig-core-schema.xsd"><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
f2be37
+
f2be37
+<EntitiesDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Name="https://federation.renater.fr/" validUntil="2011-05-23T14:24:02Z" xsi:schemaLocation="urn:oasis:names:tc:SAML:2.0:metadata saml-schema-metadata-2.0.xsd urn:mace:shibboleth:metadata:1.0 shibboleth-metadata-1.0.xsd http://www.w3.org/2000/09/xmldsig# xmldsig-core-schema.xsd"><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
f2be37
 <ds:SignedInfo>
f2be37
 <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
f2be37
 <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
f2be37
@@ -11,36 +12,50 @@
f2be37
 <ds:DigestValue>AIDrFyG3G6IpXdapls2LeP2Awt8=</ds:DigestValue>
f2be37
 </ds:Reference>
f2be37
 </ds:SignedInfo>
f2be37
-<ds:SignatureValue>
f2be37
-Mb7C8CsvA6UNnLN+LHCoOG7+c1CYQtUMm+o3p31niDfRcDcCDtuZ521FGM6p6ki6fS8HlncK0Q+h
f2be37
-7rpXNeD2dY12FU94vI5wfF6m89pRs6QYE4O13HPDDZvhRZY+BX4+fqg6tsRz8NRaFS/xvxSzzPzO
f2be37
-dsOrE6R2/QhrcaF1PnA=
f2be37
-</ds:SignatureValue>
f2be37
+<ds:SignatureValue>a47ZynaE+fXQFr2QkjjNsPoWhG0Lbed36MZ2/1jNygD2Ck3zYNSBxFTNI0bhZSi+
f2be37
+sYefYhnYDqpz785/90Ym3hVL+olMZ8z7NLlkeDKCScNCi1436j/W4voR0jez3BkA
f2be37
+IrMW2p4eUtSwfTHRazMtRacQrwTk3JAbShXuWU7fVnRI4t8oa8t43rf2hz+rRG8F
f2be37
+SizMOyyHMak13jaVCmX5qoaO4OWmqs2GhXsx8hRfzJ8o6w417InTLWcuIRNw1/zm
f2be37
+6O6H1as6nmKv34SppCiwdGrTpT6i3/zB3j9Hw7iyuvTF5bbaF+7MMsW/pjw5VOF8
f2be37
+lmNqhsCFdu+JsaTFBIB2Fg==</ds:SignatureValue>
f2be37
 <ds:KeyInfo>
f2be37
 <ds:KeyValue>
f2be37
 <ds:RSAKeyValue>
f2be37
 <ds:Modulus>
f2be37
-kFdwsiC6iQaLK1hI6uCZTp837UNcrh5qq68UYxqzC6FxE8Pi1e1KzwIbE8/z9UUylyvLTiV88Dea
f2be37
-nAOKzjuGy+YuoYlWZ9K6+QOw/H4jfbmHhaobMRXyR+22QlKLwPRAsqT3Cx4D4EfOgGlTp7m5aYap
f2be37
-9YmBtmVxS5goIgTacv8=
f2be37
+4hL9YBMYwmy/s6+CuOliYBbdGaiNWnhweLTXsd6VZVnlp1ffNKWN5yalvVRBwE3M
f2be37
+QNvXm06c07vTw73h8UtaJZF+NhZrVBg4uRnqQcBHbIlOSEE1CXfboroGcmRagKwS
f2be37
+uRdrXrTz7r6tdH70pyEH+UtJjcOqHwvo3uyoT7HIPVnwczeYez0IzhysikI9pnzT
f2be37
+/I18E+o8DZm/i4gGvBIXfas+eHVyIm4gpCCOcJA5ooLaP5WzK2C2GuIjQ9VHMLtY
f2be37
+8AlF5Brrk3+LvbWMbqs95zBVwJL0bpyYb6ymroYRFR7ucVV01nmxHM2wa4OkR2Z4
f2be37
+JLWkI+1baG5+by+q+3D1mQ==
f2be37
 </ds:Modulus>
f2be37
-<ds:Exponent>AQAB</ds:Exponent>
f2be37
+<ds:Exponent>
f2be37
+AQAB
f2be37
+</ds:Exponent>
f2be37
 </ds:RSAKeyValue>
f2be37
 </ds:KeyValue>
f2be37
 <ds:X509Data>
f2be37
-<ds:X509Certificate>
f2be37
-MIICZTCCAc6gAwIBAgIEScn+qTANBgkqhkiG9w0BAQUFADB3MQswCQYDVQQGEwJGUjEQMA4GA1UE
f2be37
-ChMHUkVOQVRFUjFWMFQGA1UEAxNNQ2VydGlmaWNhdCBkZSBzaWduYXR1cmUgZGVzIG1ldGEgZG9u
f2be37
-bmVlcyBkZSBsYSBmZWRlcmF0aW9uIEVkdWNhdGlvbi1SZWNoZXJjaGUwHhcNMDkwMzI1MDk1MTM3
f2be37
-WhcNMTkwMzIzMDk1MTM3WjB3MQswCQYDVQQGEwJGUjEQMA4GA1UEChMHUkVOQVRFUjFWMFQGA1UE
f2be37
-AxNNQ2VydGlmaWNhdCBkZSBzaWduYXR1cmUgZGVzIG1ldGEgZG9ubmVlcyBkZSBsYSBmZWRlcmF0
f2be37
-aW9uIEVkdWNhdGlvbi1SZWNoZXJjaGUwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAJBXcLIg
f2be37
-uokGiytYSOrgmU6fN+1DXK4eaquvFGMaswuhcRPD4tXtSs8CGxPP8/VFMpcry04lfPA3mpwDis47
f2be37
-hsvmLqGJVmfSuvkDsPx+I325h4WqGzEV8kfttkJSi8D0QLKk9wseA+BHzoBpU6e5uWmGqfWJgbZl
f2be37
-cUuYKCIE2nL/AgMBAAEwDQYJKoZIhvcNAQEFBQADgYEAT0rUS5GTtqW9a0pAv0PjieSS6bW3KG3M
f2be37
-tn0jC1dmav6X9fbhhmFL1XSC9WnCU2UD3986EWWYKhN2INHghHE/fQGveVwdcVSSt601OpAsUF18
f2be37
-tx0vH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i5JswUl+vfO
f2be37
+rvIwx2GAJ2EQAbSZv5ADFQ4/vxeopULgLnblc3BwVG4RTT7plNgT2iXP8YwmEGKb
f2be37
+JDHRVFUo1tX6EKkBUI9AgETrdUnLq6XxP11JmrqNL9oOHw+hGb5vT1wyn6FFxZo2
f2be37
+BVgfqdiGbjcs1bTKeQAZKuhaW90oV6+yYD6WtWn/LfHnftAJivALkmUk+XaSqqbO
f2be37
+FxuyRsz9C/yq0azr6IkCWhGwBYoLvf2CrvovSYpPXefeQ+1yXNDW7bvfAQfOO9xk
f2be37
+SqQi4cYJw9hNqTk2f61x6UX/o8wKVhXEHyaCr9lVLNpCK0Uy07f3zkubx1mW5PST
f2be37
+ITSnD8sPD7iMyGOJa5tQJ8W5u2NJT6qo52Jubgc8PapkOoYyEhUaTQEb8RN6D3oD
f2be37
+xc8cCKn4HUtpkJKgxYhQDtsomJp2RK7lzjVPXAlFUmld88WgqdJwp9GSvMEktA0=</ds:X509Certificate>
f2be37
 </ds:X509Data>
f2be37
 </ds:KeyInfo>
f2be37
 </ds:Signature>
f2be37
@@ -1277,7 +1292,7 @@ Ugr24VE4pUTqq2xGSOazVN0EKSqULXvM9ZHupGDCJmRH4P3H/X4w8Cq5Y6c0pDtJ
f2be37
           
f2be37
          
f2be37
 
f2be37
-            <EntityDescriptor entityID="https://opensso.tge-adonis.fr:8443/opensso" xmlns="urn:oasis:names:tc:SAML:2.0:metadata">
f2be37
+            <EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" entityID="https://opensso.tge-adonis.fr:8443/opensso">
f2be37
   <SPSSODescriptor AuthnRequestsSigned="false" WantAssertionsSigned="true" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
f2be37
     <KeyDescriptor use="signing">
f2be37
       <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
f2be37
@@ -8584,7 +8599,7 @@ f6ou5oRTltOZOUJfXI1XMhAUNnU7zQvrFeoGrRzGv3zq8AieXbRyWhXY1Eo1mPpS
f2be37
     $Id: renater.xml,v 1.4 2011/03/30 13:23:00 rdc Exp $
f2be37
     generated at Wed Mar 30 14:18:20 2011
f2be37
     by %Id: shib-config,v 1.6 2010/09/10 15:10:15 pmh Exp %
f2be37
-  --><EntityDescriptor entityID="https://ticket.iop.org/shibboleth" xmlns="urn:oasis:names:tc:SAML:2.0:metadata">
f2be37
+  --><EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" entityID="https://ticket.iop.org/shibboleth">
f2be37
   <SPSSODescriptor protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol urn:oasis:names:tc:SAML:1.1:protocol urn:oasis:names:tc:SAML:1.0:protocol">
f2be37
     <KeyDescriptor use="signing">
f2be37
       <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
f2be37
@@ -15545,7 +15560,7 @@ oZQx
f2be37
           
f2be37
          
f2be37
 
f2be37
-            <EntityDescriptor entityID="https://sp.tshhosting.com/shibboleth" xmlns="urn:oasis:names:tc:SAML:2.0:metadata">
f2be37
+            <EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" entityID="https://sp.tshhosting.com/shibboleth">
f2be37
   <SPSSODescriptor protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol urn:oasis:names:tc:SAML:1.1:protocol">
f2be37
     <Extensions>
f2be37
       <idpdisc:DiscoveryResponse xmlns:idpdisc="urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol" Binding="urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol" Location="https://www.isiknowledge.com/" index="1"/>
f2be37
@@ -30065,4 +30080,4 @@ ihb/MX5UR6g83EMmqZsFt57ANEORMNQywxFa4Q==
f2be37
 
f2be37
 
f2be37
 
f2be37
-</EntitiesDescriptor>
f2be37
\ No newline at end of file
f2be37
+</EntitiesDescriptor>
f2be37
diff --git a/tests/data/rootCA.crt b/tests/data/rootCA.crt
f2be37
new file mode 100644
f2be37
index 00000000..a31c99a2
f2be37
--- /dev/null
f2be37
+++ b/tests/data/rootCA.crt
f2be37
@@ -0,0 +1,32 @@
f2be37
+-----BEGIN CERTIFICATE-----
f2be37
+MIIFbTCCA1WgAwIBAgIUJD9pAmQfrAv6NLPnweO4XUdIbzkwDQYJKoZIhvcNAQEL
f2be37
+BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
f2be37
+GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAgFw0xOTA2MTEwNzQzNTVaGA8yMjkz
f2be37
+MDMyNTA3NDM1NVowRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUx
f2be37
+ITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDCCAiIwDQYJKoZIhvcN
f2be37
+AQEBBQADggIPADCCAgoCggIBAJuPnHwxmpRquFkFok4VkO39j5NT2a8+Wfp8zYnh
f2be37
+qLt3CG3oDyFftWyF97NJYoxDPbio2fVYJiBKutDOMYPsJfrd4SoqcDOGOAdfkNl9
f2be37
+SEhCnzrzlOj6ZcDoNTG0IvKh+NzLgfpU1wggyLW2ZXwvwf8hNGW9YR1i8XY5TSmt
f2be37
+0z9Dawsg2QAyYjoemUeDOVWEFWISmXySC2osXGANcOaaFMEv1Ryj5HWHzcCVZZ0g
f2be37
+UBG9iDZqewDvPg+SRvC2k16coeRjsSstHzVqBxOWpp5Oium39K8jXV6jG+JkFn49
f2be37
+C2RBldpajbPhvHKOdtJeID20njgmfCRZB/KfQGPPf8xXk4wBTxPU9L8wKy370unZ
f2be37
+P4WD1vq35KfPsiUdlavzqYkOkI20iWIZO6853oSPlJ4zmBVNXP8VhQm0h2VovNH+
f2be37
+Zde4vaPtQXPwwNbCvBItu5m1uaigPgRycBJV8M0gdliAICfCMeSwQDrhkX6ck17n
f2be37
+uBpxBTCn9GEFN/+7miNH/roH03NHU3vciqTAi1MrDA3jfOZkYBC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aGiw3jYdep8
f2be37
+CA==
f2be37
+-----END CERTIFICATE-----
f2be37
diff --git a/tests/data/rootCA.key b/tests/data/rootCA.key
f2be37
new file mode 100644
f2be37
index 00000000..6b39fb45
f2be37
--- /dev/null
f2be37
+++ b/tests/data/rootCA.key
f2be37
@@ -0,0 +1,51 @@
f2be37
+-----BEGIN RSA PRIVATE KEY-----
f2be37
+MIIJJwIBAAKCAgEAm4+cfDGalGq4WQWiThWQ7f2Pk1PZrz5Z+nzNieGou3cIbegP
f2be37
+IV+1bIX3s0lijEM9uKjZ9VgmIEq60M4xg+wl+t3hKipwM4Y4B1+Q2X1ISEKfOvOU
f2be37
+6PplwOg1MbQi8qH43MuB+lTXCCDItbZlfC/B/yE0Zb1hHWLxdjlNKa3TP0NrCyDZ
f2be37
+ADJiOh6ZR4M5VYQVYhKZfJILaixcYA1w5poUwS/VHKPkdYfNwJVlnSBQEb2INmp7
f2be37
+AO8+D5JG8LaTXpyh5GOxKy0fNWoHE5amnk6K6bf0ryNdXqMb4mQWfj0LZEGV2lqN
f2be37
+s+G8co520l4gPbSeOCZ8JFkH8p9AY89/zFeTjAFPE9T0vzArLfvS6dk/hYPW+rfk
f2be37
+p8+yJR2Vq/OpiQ6QjbSJYhk7rznehI+UnjOYFU1c/xWFCbSHZWi80f5l17i9o+1B
f2be37
+c/DA1sK8Ei27mbW5qKA+BHJwElXwzSB2WIAgJ8Ix5LBAOuGRfpyTXue4GnEFMKf0
f2be37
+YQU3/7uaI0f+ugfTc0dTe9yKpMCLUysMDeN85mRgEL8J3kCawxzo1M5dznuYXC5n
f2be37
+4GZAjrDV10vl77lj8MDntV7F9N0b79OlL4P2gElSZpzOQAb7btgqzx+YkqhNI9Qu
f2be37
+NcrynDBwEyTwe5Llu3p8EGapslvxvBdx4QcIGDtYJg2ZfLmVfBRTACE0PAMCAwEA
f2be37
+AQKCAgBPPweu1O40cXFcGFyofqAIPUWo/exFM/ROgMmMViLI7UikBLXAgKtBj7Wx
f2be37
+5c6I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cJPoQP3Jh4BxzWVBks8HdV0DGbmBzVAS
f2be37
+wi+2tuHNuYpwQv9EANuTFR5v4TrmE8ECggEAMXp5rfHt2hKLtkIwqYE7C8IVGQ9q
f2be37
+BcjKAJSuDYkyBpfSp9uxkiyvnND5tEj0uOcMCVZlntSIxWx+HXFu5rL0Ax5ZmSal
f2be37
+uoWpwDXbKYgHF9zlGXqYulsODqZC0cjJpUogXFC0B4pRDUVzuZXO9ACuS5azXYqh
f2be37
+G6Rw0O6rDTHVgkmazJtxreO8v4NpfIbBbFfQgU5xeHdS6ky9LqG+yUKJ5FWkGWcU
f2be37
+SqpZX3yxXM4q/cA1KBN31K3V2xvjVPcEwzkZDGDbLg33DASVF7RV/WYymhDuxE+w
f2be37
+vHDz9Q7dk4pTzCdNiQgomBSjOkLDKWuOvaInQwYWJgavpPGWr31hDyi5Kw==
f2be37
+-----END RSA PRIVATE KEY-----
f2be37
diff --git a/tests/data/rootCA.srl b/tests/data/rootCA.srl
f2be37
new file mode 100644
f2be37
index 00000000..8c619f27
f2be37
--- /dev/null
f2be37
+++ b/tests/data/rootCA.srl
f2be37
@@ -0,0 +1 @@
f2be37
+02D3FA5376B8B25617BA76C4EA3AE7FE4AC318B1
f2be37
-- 
f2be37
2.20.1
f2be37