| 1 | # Test Resources |
| 2 | |
| 3 | ## generateCerts.sh |
| 4 | |
| 5 | Regenerates all test certificates used by unit tests (TLS connections between localhost server and client). Run this |
| 6 | script when certificates expire. |
| 7 | |
| 8 | Generated files include RSA/EC self-signed certs, a CA-signed server cert chain, mTLS root CAs with server/device certs, |
| 9 | an untrusted server CA, and the macOS trust settings plist for `mtls_server_root_ca`. See the script header for the full list. |
| 10 | |
| 11 | ## import_custom_cert_to_keychain.sh |
| 12 | |
| 13 | macOS-only script used in CI to set up a temporary keychain with test certificates for keychain-related tests. |
| 14 | It creates a keychain, imports a trusted and an untrusted CA certificate, and configures trust settings |
| 15 | so that tests can verify correct behavior for both trusted and untrusted certificates. |