How grapheneos/platform_system_ca-certificates works
Project type and purpose
• This is not a full‐stack app but a resource packaging module for the Android OS. It collects CA certificate files, assigns them hashes (per OpenSSL conventions), and packages them via Android’s build system (Android.bp) into the system certificate store. It also includes a separate set of Wi-Fi Alliance certificates (“wfa_certs”).
File structure
• Top-level:
• Android.bp – build recipe for the main “cacerts” module
• METADATA, OWNERS, README.cacerts – module metadata and instructions
• files/ – directory full of <hash>.<n> certificate files
• wfa_certs/ – parallel directory for Wi-Fi Alliance certs, with its own Android.bp and files/
• Pattern: Two submodules (“cacerts” and “wfa_certs”), each with certificate files and build scripts.
Insights from the README
• Certificates are named by OpenSSL’s old subject hash plus an integer suffix.
• The build system uses this naming scheme to de-duplicate and hash link certificates into the final store.