diff --git a/tests/security/attributes/permissions/permissions_multi_p_01_02_03_04_readwrite.xml b/tests/security/attributes/permissions/permissions_multi_p_01_02_03_04_readwrite.xml
index ea42024ede0..115b8981918 100644
--- a/tests/security/attributes/permissions/permissions_multi_p_01_02_03_04_readwrite.xml
+++ b/tests/security/attributes/permissions/permissions_multi_p_01_02_03_04_readwrite.xml
@@ -1023,7 +1023,7 @@
- /C=GB/ST=JQ/O=Bob's Magical Widget Factory/CN=Roberto Gonzales/emailAddress=bob@magicalwidgets.com
+ emailAddress=bob@magicalwidgets.com,CN=Roberto Gonzales,O=Bob's Magical Widget Factory,ST=JQ,C=GB
2015-09-15T01:00:00
diff --git a/tests/security/attributes/permissions/permissions_multi_p_01_02_03_04_readwrite_signed.p7s b/tests/security/attributes/permissions/permissions_multi_p_01_02_03_04_readwrite_signed.p7s
index 0ec808633d4..bdad2019b72 100644
--- a/tests/security/attributes/permissions/permissions_multi_p_01_02_03_04_readwrite_signed.p7s
+++ b/tests/security/attributes/permissions/permissions_multi_p_01_02_03_04_readwrite_signed.p7s
@@ -1,9 +1,9 @@
MIME-Version: 1.0
-Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="sha1"; boundary="----D9BE09E10BBB2EB78E241A9E2F558DF6"
+Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="sha-256"; boundary="----C38497FE2AC07AEDA2590E69E656B3C7"
This is an S/MIME signed message
-------D9BE09E10BBB2EB78E241A9E2F558DF6
+------C38497FE2AC07AEDA2590E69E656B3C7
Content-Type: text/plain
@@ -1031,7 +1031,7 @@ Content-Type: text/plain
- /C=GB/ST=JQ/O=Bob's Magical Widget Factory/CN=Roberto Gonzales/emailAddress=bob@magicalwidgets.com
+ emailAddress=bob@magicalwidgets.com,CN=Roberto Gonzales,O=Bob's Magical Widget Factory,ST=JQ,C=GB
2015-09-15T01:00:00
@@ -2052,50 +2052,49 @@ Content-Type: text/plain
-------D9BE09E10BBB2EB78E241A9E2F558DF6
+------C38497FE2AC07AEDA2590E69E656B3C7
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
-MIIHLAYJKoZIhvcNAQcCoIIHHTCCBxkCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3
-DQEHAaCCA/gwggP0MIIC3AIJAKSOim/ArjfyMA0GCSqGSIb3DQEBCwUAMIG7MQsw
-CQYDVQQGEwJVUzELMAkGA1UECAwCTU8xFDASBgNVBAcMC1NhaW50IExvdWlzMS8w
-LQYDVQQKDCZPYmplY3QgQ29tcHV0aW5nIChUZXN0IFBlcm1pc3Npb25zIENBKTEv
-MC0GA1UEAwwmT2JqZWN0IENvbXB1dGluZyAoVGVzdCBQZXJtaXNzaW9ucyBDQSkx
-JzAlBgkqhkiG9w0BCQEWGGluZm9Ab2JqZWN0Y29tcHV0aW5nLmNvbTAeFw0xODA2
-MTMwNDIwMTNaFw0yODA2MTAwNDIwMTNaMIG7MQswCQYDVQQGEwJVUzELMAkGA1UE
-CAwCTU8xFDASBgNVBAcMC1NhaW50IExvdWlzMS8wLQYDVQQKDCZPYmplY3QgQ29t
-cHV0aW5nIChUZXN0IFBlcm1pc3Npb25zIENBKTEvMC0GA1UEAwwmT2JqZWN0IENv
-bXB1dGluZyAoVGVzdCBQZXJtaXNzaW9ucyBDQSkxJzAlBgkqhkiG9w0BCQEWGGlu
-Zm9Ab2JqZWN0Y29tcHV0aW5nLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC
-AQoCggEBAJ3eiwIeyTCJY+SBD4WJQkQ+P2UYBXqCqcb1dxMc/M6y/6GtZySWrhZx
-Ny7kRHGO/DOt8H0xXYmPWaGcBB+nSwi5Ml7hCheKDJ/QjJ7OxIDWh6h+Qm4GUDpx
-H7kBPN80RwkkbexVoRprQv3YJdvXjstzMwxj7oj+MP0f8pqaimHWEKB2HaUadg33
-sRMzFfmog22E7Xv+pnnlH4fmcTY6nV/hjQuGMq7dbO0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