mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00

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. Differential Revision: https://phabricator.services.mozilla.com/D172192