Platform support and certificate discovery logic
mainThe crate supports Windows, macOS, and Linux. The discovery logic follows these rules:
- Environment Variable: On all platforms, the
SSL_CERT_FILEenvironment variable is checked first. If set, certificates are loaded from the specified path. If the path is invalid, an error is returned. - Windows: Certificates are loaded from the system certificate store using the
schannelcrate. - macOS: Certificates are loaded from the keychain (merging user, admin, and system trust settings) using the
security-frameworkcrate. - Linux/UNIX-like: The
openssl-probecrate is used to discover the filename of the system CA bundle.