Bug 1225422 - Update the PrivilegedPackageRoot certificate. r=keeler

This commit is contained in:
Jonathan Hao 2015-11-19 15:08:05 +08:00
Родитель 51e925428c
Коммит 7882aa6f0e
3 изменённых файлов: 10 добавлений и 10 удалений

Просмотреть файл

@ -11,8 +11,8 @@ function handleRequest(request, response)
// The package content // The package content
// getData formats it as described at http://www.w3.org/TR/web-packaging/#streamable-package-format // getData formats it as described at http://www.w3.org/TR/web-packaging/#streamable-package-format
var signedPackage = `manifest-signature: MIIF1AYJKoZIhvcNAQcCoIIFxTCCBcECAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCCA54wggOaMIICgqADAgECAgECMA0GCSqGSIb3DQEBCwUAMHMxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEkMCIGA1UEChMbRXhhbXBsZSBUcnVzdGVkIENvcnBvcmF0aW9uMRkwFwYDVQQDExBUcnVzdGVkIFZhbGlkIENBMB4XDTE1MDkxMDA4MDQzNVoXDTM1MDkxMDA4MDQzNVowdDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MSQwIgYDVQQKExtFeGFtcGxlIFRydXN0ZWQgQ29ycG9yYXRpb24xGjAYBgNVBAMTEVRydXN0ZWQgQ29ycCBDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAts8whjOzEbn/w1xkFJ67af7F/JPujBK91oyJekh2schIMzFau9pY8S1AiJQoJCulOJCJfUc8hBLKBZiGAkii+4Gpx6cVqMLe6C22MdD806Soxn8Dg4dQqbIvPuI4eeVKu5CEk80PW/BaFMmRvRHO62C7PILuH6yZeGHC4P7dTKpsk4CLxh/jRGXLC8jV2BCW0X+3BMbHBg53NoI9s1Gs7KGYnfOHbBP5wEFAa00RjHnubUaCdEBlC8Kl4X7p0S4RGb3rsB08wgFe9EmSZHIgcIm+SuVo7N4qqbI85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=\r
--7IYGY9UDJB\r --X3JDIZCX8G\r
Content-Location: manifest.webapp\r Content-Location: manifest.webapp\r
Content-Type: application/x-web-app-manifest+json\r Content-Type: application/x-web-app-manifest+json\r
\r \r
@ -50,7 +50,7 @@ Content-Type: application/x-web-app-manifest+json\r
"package-identifier": "09bc9714-7ab6-4320-9d20-fde4c237522c", "package-identifier": "09bc9714-7ab6-4320-9d20-fde4c237522c",
"description": "A great app!" "description": "A great app!"
}\r }\r
--7IYGY9UDJB\r --X3JDIZCX8G\r
Content-Location: page2.html\r Content-Location: page2.html\r
Content-Type: text/html\r Content-Type: text/html\r
\r \r
@ -58,7 +58,7 @@ Content-Type: text/html\r
page2.html page2.html
</html> </html>
\r \r
--7IYGY9UDJB\r --X3JDIZCX8G\r
Content-Location: index.html\r Content-Location: index.html\r
Content-Type: text/html\r Content-Type: text/html\r
\r \r
@ -66,16 +66,16 @@ Content-Type: text/html\r
Last updated: 2015/10/28 Last updated: 2015/10/28
</html> </html>
\r \r
--7IYGY9UDJB\r --X3JDIZCX8G\r
Content-Location: scripts/script.js\r Content-Location: scripts/script.js\r
Content-Type: text/javascript\r Content-Type: text/javascript\r
\r \r
// script.js // script.js
\r \r
--7IYGY9UDJB\r --X3JDIZCX8G\r
Content-Location: scripts/library.js\r Content-Location: scripts/library.js\r
Content-Type: text/javascript\r Content-Type: text/javascript\r
\r \r
// library.js // library.js
\r \r
--7IYGY9UDJB--`; --X3JDIZCX8G--`;

Просмотреть файл

@ -1,10 +1,11 @@
const header_missing_signature = "header1: content1"; const header_missing_signature = "header1: content1";
const header_invalid_signature = "header1: content1\r\nmanifest-signature: invalid-signature\r\n"; const header_invalid_signature = "header1: content1\r\nmanifest-signature: invalid-signature\r\n";
const header = "manifest-signature: MIIF1AYJKoZIhvcNAQcCoIIFxTCCBcECAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCCA54wggOaMIICgqADAgECAgECMA0GCSqGSIb3DQEBCwUAMHMxCzAJBgNVBAYTA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ggH6AgEBMHgwczELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MSQwIgYDVQQKExtFeGFtcGxlIFRydXN0ZWQgQ29ycG9yYXRpb24xGTAXBgNVBAMTEFRydXN0ZWQgVmFsaWQgQ0ECAQQwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE1MTExOTAzMDEyM1owIwYJKoZIhvcNAQkEMRYEFJ7c42bSAcIZOL+r8PIsMNAXByYiMA0GCSqGSIb3DQEBAQUABIIBABPrgGwvi9bwgUEqiL9I0UpQsEEjzNvID9iSt9cicB3exQ9z3H2b47P7HOWicdYI4OQ1Gb+1OjGWJWoBbOuF+ty4HNIMlLiq+Mhm82J2fTA9h8v9BohjvjwMSECJHFQR1pp6veCrWqIvkhHLX/GcGZIr5vBmkpkcMpWKT/N8VmuNu/DKHtKiTianAWnFguAruOeL02MfKlg8mNLCQysd6qj5mbLhTvR7mtn6XaRFrHB4VSfYPerzP71/AzhVqlPRLIYQocSkRoAE+eNeMcP6RcEinKRqK0SxqmRWeSiJpkDm+5Hlx7Xs8Qamqiteyr8FN7VjkGByM0IcpH6Bd5h3trQ=\r\n";
const manifest = "Content-Location: manifest.webapp\r\n" + const manifest = "Content-Location: manifest.webapp\r\n" +
"Content-Type: application/x-web-app-manifest+json\r\n\r\n" + "Content-Type: application/x-web-app-manifest+json\r\n\r\n" +
`{ `{
"moz-package-origin": "http://mochi.test:8888",
"name": "My App", "name": "My App",
"moz-resources": [ "moz-resources": [
{ {
@ -13,7 +14,7 @@ const manifest = "Content-Location: manifest.webapp\r\n" +
}, },
{ {
"src": "index.html", "src": "index.html",
"integrity": "zEubR310nePwd30NThIuoCxKJdnz7Mf5z+dZHUbH1SE=" "integrity": "IjQ2S/V9qsC7wW5uv/Niq40M1aivvqH5+1GKRwUnyRg="
}, },
{ {
"src": "scripts/script.js", "src": "scripts/script.js",
@ -35,7 +36,6 @@ const manifest = "Content-Location: manifest.webapp\r\n" +
} }
], ],
"package-identifier": "611FC2FE-491D-4A47-B3B3-43FBDF6F404F", "package-identifier": "611FC2FE-491D-4A47-B3B3-43FBDF6F404F",
"moz-package-location": "https://example.com/myapp/app.pak",
"description": "A great app!" "description": "A great app!"
}`; }`;

Двоичные данные
security/apps/privileged-package-root.der

Двоичный файл не отображается.