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)
Testing
Mochitest
Tracking
(firefox9 fixed, status1.9.2 .25-fixed)
RESOLVED
FIXED
mozilla10
People
(Reporter: dbaron, Assigned: ehsan.akhgari)
References
Details
(Keywords: intermittent-failure, Whiteboard: [orange:time-bomb][qa-])
Attachments
(1 file, 1 obsolete file)
51.76 KB,
patch
|
mayhemer
:
review+
akeybl
:
approval-mozilla-aurora+
akeybl
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
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
Reporter | ||
Comment 1•15 years ago
|
||
(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.
Reporter | ||
Comment 2•15 years ago
|
||
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
Reporter | ||
Comment 3•15 years ago
|
||
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
Comment 4•15 years ago
|
||
I'll think of this and fix it.
Assignee: nobody → honzab.moz
Status: NEW → ASSIGNED
Comment 5•15 years ago
|
||
And thanks David for running make genservercert on my behalf.
Comment 6•13 years ago
|
||
November is here again; do we need to fix this another time?
Comment 7•13 years ago
|
||
Can we just make these certs expire in 10 years, and at least push the problem off for a while?
Assignee | ||
Comment 9•13 years ago
|
||
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)
Assignee | ||
Comment 10•13 years ago
|
||
Assignee | ||
Comment 11•13 years ago
|
||
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 12•13 years ago
|
||
Comment on attachment 572580 [details] [diff] [review]
Patch (v1)
Thanks!
Attachment #572580 -
Flags: review?(honzab.moz) → review+
Assignee | ||
Comment 13•13 years ago
|
||
Target Milestone: --- → mozilla10
Comment 14•13 years ago
|
||
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
Comment 15•13 years ago
|
||
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 16•13 years ago
|
||
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 17•13 years ago
|
||
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+
Reporter | ||
Comment 18•13 years ago
|
||
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.
Comment 19•13 years ago
|
||
http://hg.mozilla.org/releases/mozilla-beta/rev/16a58ed3c639
Looks like it is already on aurora.
status-firefox9:
--- → fixed
Whiteboard: [orange][orange:time-bomb] → [orange][orange:time-bomb][qa-]
Comment 20•13 years ago
|
||
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
status1.9.2:
--- → .25-fixed
Comment 21•13 years ago
|
||
What exactly does QA need to verify here since this is fixed in 1.9.2.25?
Comment 22•13 years ago
|
||
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.
Comment 23•13 years ago
|
||
Can I get a photo of that?
Thanks, Phil. QA will move on to waiting for 1.9.2.25 official builds then.
Updated•12 years ago
|
Keywords: intermittent-failure
Updated•12 years ago
|
Whiteboard: [orange][orange:time-bomb][qa-] → [orange:time-bomb][qa-]
Comment 24•7 years ago
|
||
(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?
Comment 25•7 years ago
|
||
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.
Description
•