transport_security_state_static_unittest_default.json 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. // This is a HSTS preload list for net_unittests. Use or add entries in this
  5. // file when you need to write a test that has expectations that depend on
  6. // static transport security state. Tests should never depend on the real
  7. // preload list. The format of this file is identical to
  8. // transport_security_state_static.json.
  9. {
  10. "pinsets": [
  11. {
  12. "name": "withoutRejectedPins",
  13. "static_spki_hashes": [
  14. "TestSPKI1",
  15. "GoodPin1"
  16. ]
  17. }, {
  18. "name": "withRejectedPins",
  19. "static_spki_hashes": [
  20. "GoodPin1"
  21. ],
  22. "bad_static_spki_hashes": [
  23. "TestSPKI1"
  24. ]
  25. }, {
  26. "name": "withReportUri",
  27. "static_spki_hashes": [
  28. "GoodPin1"
  29. ],
  30. "report_uri": "http://report-uri.preloaded.test/pkp"
  31. }
  32. ],
  33. "entries": [
  34. { "name": "hsts-preloaded.test", "policy": "test", "mode": "force-https" },
  35. { "name": "include-subdomains-hsts-preloaded.test", "policy": "test", "mode": "force-https", "include_subdomains": true },
  36. { "name": "example", "policy": "test", "mode": "force-https", "include_subdomains": true },
  37. { "name": "no-rejected-pins-pkp.preloaded.test", "policy": "test", "pins": "withoutRejectedPins" },
  38. { "name": "with-report-uri-pkp.preloaded.test", "policy": "test", "pins": "withReportUri" },
  39. { "name": "hsts-hpkp-preloaded.test", "policy": "test", "mode": "force-https", "pins": "withoutRejectedPins" },
  40. { "name": "expect-ct.preloaded.test", "policy": "test", "expect_ct": true, "expect_ct_report_uri": "http://report-uri.preloaded.test/expect-ct" },
  41. {
  42. "name": "pkp-expect-ct.preloaded.test", "policy": "test",
  43. "expect_ct": true,
  44. "expect_ct_report_uri": "http://report-uri.preloaded.test/expect-ct",
  45. "pins": "withoutRejectedPins"
  46. },
  47. { "name": "www.example.org", "policy": "test", "pins": "withoutRejectedPins" },
  48. { "name": "test.example.org", "policy": "test", "pins": "withoutRejectedPins" },
  49. { "name": "mail.example.org", "policy": "test", "pins": "withoutRejectedPins" },
  50. { "name": "mail.example.com", "policy": "test", "pins": "withoutRejectedPins" },
  51. { "name": "example.test", "policy": "test", "pins": "withoutRejectedPins" }
  52. ]
  53. }