releases-comm-central/mailnews/test/certs
Geoff Lankow 8ab4a946e0 Bug 1893899 - Improve notifications about certificate errors when fetching mail. r=aleca
- Changes the behaviour when a certificate error is encountered. Instead of just showing the
    certificate override dialog box, show a notification which opens the dialog if it is clicked on.
- Uses a different notification text depending on the type of error. Domain mismatch (potential
    man-in-the-middle) errors will not show the certificate override dialog at all.
- Surfaces errors that appear from changing the displayed folder. Previously these just silently failed.
- Tests all of the above.

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

--HG--
extra : rebase_source : bc569ba7a6555aef27fba39b1429a18c9cec7dbf
extra : amend_source : a48d8b7ad7f7030b33fcf5f543f00581785fedbd
2024-04-29 16:05:54 +12:00
..
ca.key Bug 1851536 - Move test certificate files into their own directory. r=john.bieling 2024-02-22 21:14:28 +13:00
ca.key.keyspec Bug 1851536 - Move test certificate files into their own directory. r=john.bieling 2024-02-22 21:14:28 +13:00
dav.cert Bug 1851536 - Add tests for CardDAV address books with DNS discovery and OAuth2 authentication. r=mkmelin 2024-03-07 19:30:11 +13:00
dav.cert.certspec Bug 1851536 - Add tests for CardDAV address books with DNS discovery and OAuth2 authentication. r=mkmelin 2024-03-07 19:30:11 +13:00
dav.key Bug 1851536 - Add tests for CardDAV address books with DNS discovery and OAuth2 authentication. r=mkmelin 2024-03-07 19:30:11 +13:00
expired.cert Bug 1851536 - Move test certificate files into their own directory. r=john.bieling 2024-02-22 21:14:28 +13:00
expired.cert.certspec Bug 1851536 - Move test certificate files into their own directory. r=john.bieling 2024-02-22 21:14:28 +13:00
expired.key Bug 1851536 - Move test certificate files into their own directory. r=john.bieling 2024-02-22 21:14:28 +13:00
notyetvalid.cert Bug 1893899 - Improve notifications about certificate errors when fetching mail. r=aleca 2024-04-29 16:05:54 +12:00
notyetvalid.cert.certspec Bug 1893899 - Improve notifications about certificate errors when fetching mail. r=aleca 2024-04-29 16:05:54 +12:00
notyetvalid.key Bug 1893899 - Improve notifications about certificate errors when fetching mail. r=aleca 2024-04-29 16:05:54 +12:00
oauth.cert Bug 1851536 - Move test certificate files into their own directory. r=john.bieling 2024-02-22 21:14:28 +13:00
oauth.cert.certspec Bug 1851536 - Move test certificate files into their own directory. r=john.bieling 2024-02-22 21:14:28 +13:00
oauth.key Bug 1851536 - Move test certificate files into their own directory. r=john.bieling 2024-02-22 21:14:28 +13:00
readme.txt Bug 1851536 - Move test certificate files into their own directory. r=john.bieling 2024-02-22 21:14:28 +13:00
selfsigned.cert Bug 1893899 - Improve notifications about certificate errors when fetching mail. r=aleca 2024-04-29 16:05:54 +12:00
selfsigned.cert.certspec Bug 1893899 - Improve notifications about certificate errors when fetching mail. r=aleca 2024-04-29 16:05:54 +12:00
valid.cert Bug 1851536 - Move test certificate files into their own directory. r=john.bieling 2024-02-22 21:14:28 +13:00
valid.cert.certspec Bug 1851536 - Move test certificate files into their own directory. r=john.bieling 2024-02-22 21:14:28 +13:00
valid.key Bug 1851536 - Move test certificate files into their own directory. r=john.bieling 2024-02-22 21:14:28 +13:00

readme.txt

To add a new certificate, make a file named foo.cert.certspec, then run:
- mach generate-test-certs foo.cert.certspec
- openssl pkcs12 -export -inkey ca.key -in foo.cert -name foo -out foo.key

This will generate foo.cert and foo.key. All three files should be checked in.
The .cert and .key files should be added to mailnews/moz.build.

See ServerTestUtils.sys.mjs to see how to use the files.