Closed Bug 1815768 Opened 2 years ago Closed 2 years ago

automate regenerating netwerk/test/unit/client-cert.p12

Categories

(Core :: Security: PSM, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: jschanck, Assigned: keeler)

References

Details

Attachments

(1 file)

The patch for Bug 1770869 added netwerk/test/unit/client-cert.p12 without a mechanism to automatically regenerate the certificate embedded in that file. The current certificate expired on Feb 5, 2023 and netwerk/test/unit/test_tls_server.js has been failing since. The failing test was disabled in Bug 1815090.

We should automatically generate this p12 file as part of ./mach generate-test-certs.

Type: defect → enhancement
Summary: Renew certificate in netwerk/test/unit/client-cert.p12 → automate regenerating netwerk/test/unit/client-cert.p12

This adds a rudimentary method of regenerating test PKCS12 files via mach generate-test-certs. Due to the complicated nature of the format, this
implementation ultimately relies on OpenSSL to implement the encryption and
encoding. genpgocert.py already relies on OpenSSL, so this is not a new
requirement. Additionally, due to the limited number of test PKCS12 files in
the tree, the options for creating these files are not very sophisticated. In
the future, it may be beneficial to create more kinds of files with various
properties, but at the moment this suffices.

Pushed by dkeeler@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/247e2f389ed7 enable automatically regenerating test PKCS12 files r=jschanck
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: