gecko-dev/build/pgo/certs
Chris Peterson 908795a253 Bug 583181 - Part 1: Add test for current navigator.buildID behavior. r=hsivonen
The incorrect LEGACY_BUILD_ID will be fixed in a subsequent changeset.

We must add https://www.mozilla.org/ to server-locations.txt and regenerate the mochitest certificates [1] because the new navigator.buildID test pretends to load content from https://www.mozilla.org/.

[1] https://searchfox.org/mozilla-central/source/build/pgo/certs/README

Differential Revision: https://phabricator.services.mozilla.com/D7982

--HG--
rename : dom/tests/mochitest/bugs/test_bug351601.html => dom/tests/mochitest/bugs/test_navigator_buildID.html
extra : rebase_source : 1deb142930f1a7a570cf719c4cb2bed8adfeabe2
extra : source : 408bff32f9623513a271cdf043d11ba6d1318e03
2018-10-07 01:17:54 -07:00
..
README Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
alternateroot.ca Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
alternateroot.ca.keyspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
alternateroot.certspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
bug413909cert.certspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
cert9.db Bug 583181 - Part 1: Add test for current navigator.buildID behavior. r=hsivonen 2018-10-07 01:17:54 -07:00
dynamicPinningBad.certspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
dynamicPinningBad.server.keyspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
dynamicPinningGood.certspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
escapeattack1.certspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
evintermediate.ca Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
evintermediate.ca.keyspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
evintermediate.certspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
expired.certspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
imminently_distrusted.certspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
key4.db Bug 583181 - Part 1: Add test for current navigator.buildID behavior. r=hsivonen 2018-10-07 01:17:54 -07:00
mochitest.certspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
mochitest.client Bug 583181 - Part 1: Add test for current navigator.buildID behavior. r=hsivonen 2018-10-07 01:17:54 -07:00
mochitest.client.keyspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
pgoca.ca Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
pgoca.ca.keyspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
pgoca.certspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
selfsigned.certspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
sha1_end_entity.certspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
sha256_end_entity.certspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
staticPinningBad.certspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
staticPinningBad.server.keyspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
unknown_ca.certspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
untrusted.certspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00
untrustedandexpired.certspec Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus 2018-04-23 11:14:17 +02:00

README

The certificate authority and server certificates here are generated by
$topsrcdir/build/pgo/genpgocert.py.

You can regenerate the certificates by running: ./mach python
build/pgo/genpgocert.py

To add a new CA, add a ${cert_name}.ca.keyspec as well as a corresponding
${cert_name}.certspec to this folder.

To add new server certificates, add a ${cert_name}.certspec file to this folder.
If it needs a non-default private key, add a corresponding
${cert_name}.server.keyspec.

For new client certificates, add a ${cert_name}.client.keyspec and corresponding
${cert_name}.certspec.

The naming convention here is because the generated ".client" and ".ca" PEM
files need to be copied into this folder for Mochitests' runtests.py to import.

These commands will modify cert9.db and key4.db. The changes to these should be
committed.

Specific notes for certs:

  dynamicPinningGood: Changing this keyspec will require changing
  browser/base/content/test/general/pinning_headers.sjs . You can obtain a new
  valid pin via:

  certutil -L -d . -n dynamicPinningGood -r | openssl x509 -inform der -pubkey \
  -noout | openssl pkey -pubin -outform der | openssl dgst -sha256 -binary \
  | openssl enc -base64