summaryrefslogtreecommitdiffstats
path: root/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager
diff options
context:
space:
mode:
authorChrisC <christophe.closset@intl.att.com>2021-02-12 16:21:40 +0100
committerChrisC <christophe.closset@intl.att.com>2021-02-15 17:58:06 +0100
commit70533b5c8fff3e9eb9e3b7bc6dd439d53036915a (patch)
tree09ad9030c676ac2e355f74dd3ca2123978111793 /openecomp-be/backend/openecomp-sdc-vendor-software-product-manager
parent9d724fe46a32c564f8297544a5634ccb9ccdc61c (diff)
Fix build
Fix catalog-be tests and Integration docker test this fix is not final as it just avoids concurrency issues on statics Fix Expired certificates on Vendorsoftwareproduct Issue-ID: SDC-3467 Signed-off-by: ChrisC <christophe.closset@intl.att.com> Change-Id: I311470b305a29bebffbd74b6f2ad7b13193132e1
Diffstat (limited to 'openecomp-be/backend/openecomp-sdc-vendor-software-product-manager')
-rw-r--r--openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/security/SecurityManagerTest.java14
-rw-r--r--openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/2-file-signed-package/dummyPnfv4.cms86
-rw-r--r--openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/3-file-signed-package/dummyPnfv4.cert58
-rw-r--r--openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/3-file-signed-package/dummyPnfv4.cms31
-rw-r--r--openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/package.cert19
-rw-r--r--openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/package2.cert35
-rw-r--r--openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/readme.md2
-rw-r--r--openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/rootCA.cert21
8 files changed, 130 insertions, 136 deletions
diff --git a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/security/SecurityManagerTest.java b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/security/SecurityManagerTest.java
index 306bc322dc..3b24c4feb6 100644
--- a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/security/SecurityManagerTest.java
+++ b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/security/SecurityManagerTest.java
@@ -110,7 +110,7 @@ public class SecurityManagerTest {
@Test
public void verifySignedDataTestCertIncludedIntoSignature() throws IOException, URISyntaxException, SecurityManagerException {
- PrepareCertFiles("/cert/root.cert", cerDirPath + "root.cert");
+ PrepareCertFiles("/cert/rootCA.cert", cerDirPath + "root.cert");
byte[] signature = readAllBytes("/cert/2-file-signed-package/dummyPnfv4.cms");
byte[] archive = readAllBytes("/cert/2-file-signed-package/dummyPnfv4.csar");
assertTrue(securityManager.verifySignedData(signature, null, archive));
@@ -129,7 +129,7 @@ public class SecurityManagerTest {
@Test
public void verifySignedDataTestCertNotIncludedIntoSignature() throws IOException, URISyntaxException, SecurityManagerException {
- PrepareCertFiles("/cert/root.cert", cerDirPath + "root.cert");
+ PrepareCertFiles("/cert/rootCA.cert", cerDirPath + "root.cert");
byte[] signature = readAllBytes("/cert/3-file-signed-package/dummyPnfv4.cms");
byte[] archive = readAllBytes("/cert/3-file-signed-package/dummyPnfv4.csar");
byte[] cert = readAllBytes("/cert/3-file-signed-package/dummyPnfv4.cert");
@@ -138,11 +138,11 @@ public class SecurityManagerTest {
@Test
public void verifySignedDataTestCertIntermediateNotIncludedIntoSignature() throws IOException, URISyntaxException, SecurityManagerException {
- PrepareCertFiles("/cert/root.cert", cerDirPath + "root.cert");
- PrepareCertFiles("/cert/signing-ca2.crt", cerDirPath + "signing-ca2.crt");
+ PrepareCertFiles("/cert/rootCA.cert", cerDirPath + "root.cert");
+ PrepareCertFiles("/cert/package2.cert", cerDirPath + "signing-ca2.crt");
byte[] signature = readAllBytes("/cert/3-file-signed-package/dummyPnfv4.cms");
byte[] archive = readAllBytes("/cert/3-file-signed-package/dummyPnfv4.csar");
- byte[] cert = readAllBytes("/cert/3-file-signed-package/dummyPnfv4-no-intermediate.cert");
+ byte[] cert = readAllBytes("/cert/3-file-signed-package/dummyPnfv4.cert");
assertTrue(securityManager.verifySignedData(signature, cert, archive));
}
@@ -161,7 +161,7 @@ public class SecurityManagerTest {
@Test
public void verifySignedDataTestCertIncludedIntoSignatureWithWrongIntermediateInDirectory() throws IOException, URISyntaxException, SecurityManagerException {
- PrepareCertFiles("/cert/root.cert", cerDirPath + "root.cert");
+ PrepareCertFiles("/cert/rootCA.cert", cerDirPath + "root.cert");
PrepareCertFiles("/cert/signing-ca1.crt", cerDirPath + "signing-ca1.crt");
byte[] signature = readAllBytes("/cert/2-file-signed-package/dummyPnfv4.cms");
byte[] archive = readAllBytes("/cert/2-file-signed-package/dummyPnfv4.csar");
@@ -170,7 +170,7 @@ public class SecurityManagerTest {
@Test
public void verifySignedDataTestCertWrongIntermediateInDirectory() throws IOException, URISyntaxException, SecurityManagerException {
- PrepareCertFiles("/cert/root.cert", cerDirPath + "root.cert");
+ PrepareCertFiles("/cert/rootCA.cert", cerDirPath + "root.cert");
PrepareCertFiles("/cert/signing-ca1.crt", cerDirPath + "signing-ca1.crt");
byte[] signature = readAllBytes("/cert/3-file-signed-package/dummyPnfv4.cms");
byte[] archive = readAllBytes("/cert/3-file-signed-package/dummyPnfv4.csar");
diff --git a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/2-file-signed-package/dummyPnfv4.cms b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/2-file-signed-package/dummyPnfv4.cms
index 6098f22593..28d323bd88 100644
--- a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/2-file-signed-package/dummyPnfv4.cms
+++ b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/2-file-signed-package/dummyPnfv4.cms
@@ -1,56 +1,34 @@
-----BEGIN CMS-----
-MIIJ7QYJKoZIhvcNAQcCoIIJ3jCCCdoCAQExDTALBglghkgBZQMEAgEwCwYJKoZI
-hvcNAQcBoIIHEDCCAzkwggIhAhQlYYBMA/D1rLopIQb8Nlq4Tk5azDANBgkqhkiG
-9w0BAQsFADB6MRMwEQYKCZImiZPyLGQBGRYDb3JnMRYwFAYKCZImiZPyLGQBGRYG
-c2ltcGxlMRMwEQYDVQQKDApTaW1wbGUgSW5jMRowGAYDVQQLDBFTaW1wbGUgU2ln
-bmluZyBDQTEaMBgGA1UEAwwRU2ltcGxlIFNpZ25pbmcgQ0EwHhcNMjEwMTE0MTEy
-MTU3WhcNMjEwMjEzMTEyMTU3WjA4MQswCQYDVQQGEwJQTDEMMAoGA1UECAwDU0lM
-MQwwCgYDVQQHDANXUk8xDTALBgNVBAoMBE5PSzEwggEiMA0GCSqGSIb3DQEBAQUA
-A4IBDwAwggEKAoIBAQCh9XoFXEIOosrdtgMrTBD1SkLGyuaLNOhRxCT5iPDuiQdR
-g8yLBQQHZv8nUQG7VXICJjgdfoVaO/sic+683RwXb3HFmxI3/Q1zZ8K6aPL5zTZs
-gJKf/31Z/ZnEyLO2zYknVGSlQGj/r8/pSC7HqoGljzpH+nYyN7e8WxfWnbLn4/jT
-uqA9afJmuvrbacI8LnaH18HIAf3LpsCXh1ullVBFonvz19mKmJLAhdFXbp/65eyh
-x2hwuzdG0EeA4eXIHiOyw6XI2MqkwWMGcwHC4iY0MZi9OYBm6oGRzSakBVHylD8+
-kqnG4zV8ELZPorG/P7x4/U8D7zx3Ni0d0uRDTGI9AgMBAAEwDQYJKoZIhvcNAQEL
-BQADggEBAAAa/cchx4I93RfYRZBcc1cpfRoyxgZSDWPUGgMYmJka6atwVCA5lm6R
-VGXqsWMZQOfIXC8bys2h6cfJjWqcoOr9yKAR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Dewyv1AuLqoeVu5+xZnjKsKnwjNmN
+kVJg+NR6J7PGNC1g2iiByXMKPpdQ8VxHSC9jIEF8PGoAqeivAmZKZRAQTgYXHg51
+UJFN15EyIc48YELdUqUPGKXMG+69GoAtjkgKZUV0FiGnOAKxtwVIHrAiIr9zGuOw
+lXQqP7NnCrtUjXUq/NXwqLFO4jZ36jys3PuKaYtzOI7oxo/GmJ1I3tfIs64KTTD3
+Orlhh7lInPsMfIn/G36GemBjnd7enWeZuVL231p/u4RRJAgIgvKNx/JgBdggSoou
+hmqxIyu1w8hDHpgLDg0=
-----END CMS-----
diff --git a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/3-file-signed-package/dummyPnfv4.cert b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/3-file-signed-package/dummyPnfv4.cert
index 7d03a59add..13cf353198 100644
--- a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/3-file-signed-package/dummyPnfv4.cert
+++ b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/3-file-signed-package/dummyPnfv4.cert
@@ -1,43 +1,19 @@
-----BEGIN CERTIFICATE-----
-MIIDOTCCAiECFFqXkiZIzIdNPTG62Jbr3Ub37ZuTMA0GCSqGSIb3DQEBCwUAMHox
-EzARBgoJkiaJk/IsZAEZFgNvcmcxFjAUBgoJkiaJk/IsZAEZFgZzaW1wbGUxEzAR
-BgNVBAoMClNpbXBsZSBJbmMxGjAYBgNVBAsMEVNpbXBsZSBTaWduaW5nIENBMRow
-GAYDVQQDDBFTaW1wbGUgU2lnbmluZyBDQTAeFw0yMTAxMTQxMTMxMDhaFw0yMTAy
-MTMxMTMxMDhaMDgxCzAJBgNVBAYTAlBMMQwwCgYDVQQIDANTSUwxDDAKBgNVBAcM
-A1dSTzENMAsGA1UECgwETk9LMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
-ggEBALbulTgLmez9BZHSjMhU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-----END CERTIFICATE-----
diff --git a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/3-file-signed-package/dummyPnfv4.cms b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/3-file-signed-package/dummyPnfv4.cms
index 5c0239a84d..187ec7f547 100644
--- a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/3-file-signed-package/dummyPnfv4.cms
+++ b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/3-file-signed-package/dummyPnfv4.cms
@@ -1,18 +1,17 @@
-----BEGIN CMS-----
-MIIC2QYJKoZIhvcNAQcCoIICyjCCAsYCAQExDTALBglghkgBZQMEAgEwCwYJKoZI
-hvcNAQcBMYICozCCAp8CAQEwgZIwejETMBEGCgmSJomT8ixkARkWA29yZzEWMBQG
-CgmSJomT8ixkARkWBnNpbXBsZTETMBEGA1UECgwKU2ltcGxlIEluYzEaMBgGA1UE
-CwwRU2ltcGxlIFNpZ25pbmcgQ0ExGjAYBgNVBAMMEVNpbXBsZSBTaWduaW5nIENB
-AhRal5ImSMyHTT0xutiW691G9+2bkzALBglghkgBZQMEAgGggeQwGAYJKoZIhvcN
-AQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMjEwMTE0MTIxOTU4WjAv
-BgkqhkiG9w0BCQQxIgQg9ya6QcX9J6hp+zfK1gceoLlpApp92mfxGoX3eZ1dMUww
-eQYJKoZIhvcNAQkPMWwwajALBglghkgBZQMEASowCwYJYIZIAWUDBAEWMAsGCWCG
-SAFlAwQBAjAKBggqhkiG9w0DBzAOBggqhkiG9w0DAgICAIAwDQYIKoZIhvcNAwIC
-AUAwBwYFKw4DAgcwDQYIKoZIhvcNAwICASgwDQYJKoZIhvcNAQEBBQAEggEAdOCW
-TAQvGstVNgytaVTikXWUmqFC5dNq96cDKCfyNYLeaXg2ZqSmzyhyfFz4pChmaG2P
-hO9kP/6LilD2+wJj4tvhR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KtlROJeSb7UoxDnsxJI12uQQD021thuDJy6HlZ8fRXb0PcjwBv+C
+jJKragmEegWMf2EVIPIM2V0CblmCrdkCzwV1MnvKCF67eLaMzZzrDKdeiRz2SR5Z
+YtmMuKpXw3U9OU6L+8syBbY=
-----END CMS-----
diff --git a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/package.cert b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/package.cert
new file mode 100644
index 0000000000..13cf353198
--- /dev/null
+++ b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/package.cert
@@ -0,0 +1,19 @@
+-----BEGIN CERTIFICATE-----
+MIIDJTCCAg0CFFSuwtp3s/Ef6qB3x3CdUBOHcDAwMA0GCSqGSIb3DQEBCwUAME8x
+CzAJBgNVBAYTAlVTMRAwDgYDVQQIDAdOZXdZb3JrMQswCQYDVQQHDAJOSjENMAsG
+A1UECgwET05BUDESMBAGA1UEAwwJT05BUCBSb290MB4XDTIxMDIxNTE2MjgzM1oX
+DTI5MTEyMDE2MjgzM1owTzELMAkGA1UEBhMCVVMxEDAOBgNVBAgMB05ld1lvcmsx
+CzAJBgNVBAcMAk5KMQ0wCwYDVQQKDARPTkFQMRIwEAYDVQQDDAlPTkFQIFNJR04w
+ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDz72QFAEDkQL1O3bYk7NRd
+JRRtUXMgpWHKXW67zBQB+7ZZUtNLhaC3n5IW+mlJ8lySq2F9hJzPRenGYc+MkNSl
+Hhaq4EumwiONRQpiQScSZ73AuKMRJYKCgHpeWbmylbHiYnZVT3U1ZgjTG9qqLunD
+OAyq8NYyjiR/A6H5bHSaKFgVIJ1urYsK/j8F5b5BdNaoqHM+pFDOmr9RljTyTRkO
+jaiac0VHSyd6+OtedxGJb0QK+UFShI3SF0cM/mHr6G22FlUHXLX9TMcHnrAbE8/Q
+Ih4WAqPNHvZv0flPv6a29LP9vrGANC9aJiZ9oKm6uCY8ygqiTDcBUHtEW7mnFUtp
+AgMBAAEwDQYJKoZIhvcNAQELBQADggEBAFrBxqRlmiTA0D1YEgwGiWtVECSJEIyd
+lJnGOgcgw9z6V9EXz4zWDH0Nq6Qgm7evL6Ou4nBrMHI+FCYEiBBYLCn799oK6PCX
+4hJZ8zHXlBd2YI9NLMJQCHgQ/N+52Ju8a/BuXZ9STVoJ237mampvWPzfRby+Me7n
+gORRNFehBYx3sQtBSEIx1GX/VeNihS89koMfY/+RARmLpDsqs4p+Xr1F11NLddPH
+euNMz1J6j6DFoVezdjPTcfEWGnMXjmDiw7HGIe5sCsmLnY5yI+SVN26ND/n5rO5X
+67EfqO2YviqMnkQSJVHGH1y9LDWWatr3LRcc30gO9NQKgPYptvjIxXg=
+-----END CERTIFICATE-----
diff --git a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/package2.cert b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/package2.cert
index f45f6720f0..1b5c9e05db 100644
--- a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/package2.cert
+++ b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/package2.cert
@@ -1,20 +1,19 @@
-----BEGIN CERTIFICATE-----
-MIIDOTCCAiECFFqXkiZIzIdNPTG62Jbr3Ub37ZuTMA0GCSqGSIb3DQEBCwUAMHox
-EzARBgoJkiaJk/IsZAEZFgNvcmcxFjAUBgoJkiaJk/IsZAEZFgZzaW1wbGUxEzAR
-BgNVBAoMClNpbXBsZSBJbmMxGjAYBgNVBAsMEVNpbXBsZSBTaWduaW5nIENBMRow
-GAYDVQQDDBFTaW1wbGUgU2lnbmluZyBDQTAeFw0yMTAxMTQxMTMxMDhaFw0yMTAy
-MTMxMTMxMDhaMDgxCzAJBgNVBAYTAlBMMQwwCgYDVQQIDANTSUwxDDAKBgNVBAcM
-A1dSTzENMAsGA1UECgwETk9LMjCCASIwDQ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ESMBAGA1UEAwwJT05BUFRP
+S1lPMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwU1wXzTJK1/Qkvdv
+9P9/g9PrOFEQuNVGweuswB96oXnWn+jZybaHtfbNqJXPuASGnj+XLeEV3y7etGBt
+ImMmwfT56DuFcsK77DpmDBtw7BiUEUkHTrwZ2+CqU3ViBEaos2jtguuKxX8ViXxw
+5GTzsQ0aL1tEGT9vggpXZJYBZXmWaPoJvacpVWfx3YsltmDYItxoPyk+tU/D5rjk
+qfjfNuOsbYWwFN4cWy8P77WaWoDp9Zo7krHAfrmHx36um+mN22Ga8AX+0kZ6xdKh
+CuVnCgnwOaqFHv0paxPxKCpvyHGy/9Wbd1Cmqc6nDGHRgNcfOWyIfRTaD1kbUCPy
+Zwim8QIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQBquNm74ZbGE3DCYKIOT3ergsXL
+IejvdCdC2NfHZLsiMcdKkZOZFFSL8S93LUvlOCLlFmiU7V7XSQJneIJrjN75M7GN
+DTQhtmbNf16O49pOePr3uJVn7eF/xEUQo8hwIjPgqLUREDjbqDdD/cBGqL0yrOOl
+HWyutEhdNh5TuTYyIE8uOnj7qQ2DdnAp0wbZ6/4PZdh3ZGzFvN1xtxD51bC6iJDB
+seoDc1v9/nOAo7+kauq0A5qLKWZYmL1uYIv6gPFwytlEk98PzdyjJcN7eVBrZklX
+XQT7YmYpyBAHhA5jPEY2+W4VabAksYjAZIIwQTeY+ihrsg7VO8Nq0j26nE0w
-----END CERTIFICATE-----
diff --git a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/readme.md b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/readme.md
new file mode 100644
index 0000000000..8a0d30d2a6
--- /dev/null
+++ b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/readme.md
@@ -0,0 +1,2 @@
+To update tests with new certificates see
+https://wiki.onap.org/display/DW/SDC%3A+Sign+a+package \ No newline at end of file
diff --git a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/rootCA.cert b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/rootCA.cert
new file mode 100644
index 0000000000..c070c021df
--- /dev/null
+++ b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/cert/rootCA.cert
@@ -0,0 +1,21 @@
+-----BEGIN CERTIFICATE-----
+MIIDfzCCAmegAwIBAgIUJC7SPSFmyqEtKN9nhbBEKTXQGIMwDQYJKoZIhvcNAQEL
+BQAwTzELMAkGA1UEBhMCVVMxEDAOBgNVBAgMB05ld1lvcmsxCzAJBgNVBAcMAk5K
+MQ0wCwYDVQQKDARPTkFQMRIwEAYDVQQDDAlPTkFQIFJvb3QwHhcNMjEwMjE1MTYy
+NzM4WhcNMjkxMTIwMTYyNzM4WjBPMQswCQYDVQQGEwJVUzEQMA4GA1UECAwHTmV3
+WW9yazELMAkGA1UEBwwCTkoxDTALBgNVBAoMBE9OQVAxEjAQBgNVBAMMCU9OQVAg
+Um9vdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALR34fcoYCIMvG8f
+vbYsVAgFmU7aTC4gqlvF3kPENeuCXrIm99/sHa90Yzypo/qMeB36RFGi9lp2U2IT
+w9MHffp6+Gdtfnn2kRczCf00AmxAC+2o/rkwA7y/08rNq7cTPVKQgjj4InuVglFb
+/nPWVu3nv7gnOWFRUdTAwb2G73T6kcTYD+sTBh9Nb+Gd4kyTLt4mCdYuY0SE0blQ
+GmNIFIuoRiR03y/1BFaZzfNroJRfHjQl0CKFEh5TDDJRGxs1zTiT3/Fh1O48tOAw
+T/nhqYdoTy2+/wQPGmt/nJiI+aUd64rwfjyKsKGrJP1it6Zl55nGYFDdbylhFUSb
+QVcPqBECAwEAAaNTMFEwHQYDVR0OBBYEFNkjXcPWHOmTyBd+veqmsVYR0sR9MB8G
+A1UdIwQYMBaAFNkjXcPWHO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