Closed Bug 531590 Opened 15 years ago Closed 13 years ago

in-tree certs for ssltunnel+mochitest expire when not regenerated after a year

Categories

(Testing :: Mochitest, defect)

defect
Not set
critical

Tracking

(firefox9 fixed, status1.9.2 .25-fixed)

RESOLVED FIXED
mozilla10
Tracking Status
firefox9 --- fixed
status1.9.2 --- .25-fixed

People

(Reporter: dbaron, Assigned: ehsan.akhgari)

References

Details

(Keywords: intermittent-failure, Whiteboard: [orange:time-bomb][qa-])

Attachments

(1 file, 1 obsolete file)

The mozilla-central and 1.9.2 trees went very orange for all tests run after 9:45AM PST this morning because the certs in build/pgo/certs/ expired at that time. I regenerated them in a mozilla-central tree using 'make genservercert' in build/pgo/ and checked in the results to mozilla-central and 1.9.2: http://hg.mozilla.org/mozilla-central/rev/7b58ad67abe9 http://hg.mozilla.org/releases/mozilla-1.9.2/rev/21547b202482 1.9.1 and other trees may need this as well; I haven't looked yet. We should: (1) give these certs a much longer expiration time from generation (currently 120 days, although I'm not sure why this didn't cause problems the last time around) (2) have a test in the tree that their validity is at least 6 months in the future
(In reply to comment #0) > (2) have a test in the tree that their validity is at least 6 months in the > future To clarify: the point of doing this is so that we have one test that fails with a clear error message (and instructions on how to fix) well before any other tests start failing with this problem.
So the argument to -v is supposed to be months, not days. One certutil command in the makefile sets certs to expire at 120 months, the other at 12 months. I'm not sure why the expiration was set when it was given the commit log of those files. I checked in the UI, and the example.com cert I just generated does, in fact, expire 12 months from now. It looks like what I just ran didn't regenerate the testing CA cert, but that that one expires in 2018 (10 years after its generation date). We should have tests checking the expiration of all of these, really...
Summary: in-tree certs for ssltunnel+mochitest expire when not regenerated after 120 days → in-tree certs for ssltunnel+mochitest expire when not regenerated after a year
I confirmed locally that the tests were also hanging in a 1.9.1 tree, regenerated the cert db again in that tree, and committed: http://hg.mozilla.org/releases/mozilla-1.9.1/rev/82725e596499
Blocks: 438871
Whiteboard: [orange][orange:time-bomb]
I'll think of this and fix it.
Assignee: nobody → honzab.moz
Status: NEW → ASSIGNED
And thanks David for running make genservercert on my behalf.
Blocks: 615173
November is here again; do we need to fix this another time?
Can we just make these certs expire in 10 years, and at least push the problem off for a while?
Attached patch Patch (v1)Splinter Review
This increases the default certificate validity period for the self-signed cert that we use for testing to 10 years, and includes new certificates with new validity.
Assignee: honzab.moz → ehsan
Attachment #572580 - Flags: review?(honzab.moz)
Comment on attachment 572575 [details] [diff] [review] make certs expire in 10 years rather than 1 This patch is a subset of what I have...
Attachment #572575 - Attachment is obsolete: true
Attachment #572575 - Flags: review?(honzab.moz)
Comment on attachment 572580 [details] [diff] [review] Patch (v1) Thanks!
Attachment #572580 - Flags: review?(honzab.moz) → review+
Try run for ef142b8407f6 is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=ef142b8407f6 Results (out of 206 total builds): success: 177 warnings: 21 other: 8 Builds available at http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/eakhgari@mozilla.com-ef142b8407f6
https://hg.mozilla.org/mozilla-central/rev/82f9cf114090 Presume this will be needed on the other trees too...
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment on attachment 572580 [details] [diff] [review] Patch (v1) We need to take this patch on aurora and beta to avoid these tests turning permaorange. This is a test-only change, it simply updates the expiration date of the SSL certificates we use for Mochitest.
Attachment #572580 - Flags: approval-mozilla-beta?
Attachment #572580 - Flags: approval-mozilla-aurora?
Comment on attachment 572580 [details] [diff] [review] Patch (v1) [Triage Comment] Approving test changes for aurora and beta.
Attachment #572580 - Flags: approval-mozilla-beta?
Attachment #572580 - Flags: approval-mozilla-beta+
Attachment #572580 - Flags: approval-mozilla-aurora?
Attachment #572580 - Flags: approval-mozilla-aurora+
We still need a bug on regenerating these every 10 years, and probably a test that fails when they're within a year of expiring.
Whiteboard: [orange][orange:time-bomb] → [orange][orange:time-bomb][qa-]
This component could use a few more approval flags. Gosh darn it, I had to unbust without approval :) https://hg.mozilla.org/releases/mozilla-1.9.2/rev/5a3c09ad5f4a
What exactly does QA need to verify here since this is fixed in 1.9.2.25?
Not one thing: it's test-only, and I would have been screaming and flapping my arms if it didn't fix the tests when I pushed it.
Can I get a photo of that? Thanks, Phil. QA will move on to waiting for 1.9.2.25 official builds then.
Whiteboard: [orange][orange:time-bomb][qa-] → [orange:time-bomb][qa-]
(In reply to David Baron :dbaron: ⌚️UTC-8 from comment #2) > It looks like what I just ran didn't regenerate the testing CA cert, but > that that one expires in 2018 (10 years after its generation date). Remember when "expires in 2018" seemed like a long time in the future, rather than like 103 days from now?
Or maybe like today, not sure whether you meant the one that expired this afternoon and is causing bug 1435644, or /build/pgo/certs/pgoca.ca which expires May 18th.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: