Common Failure: Unknown CA
Verify return code: 19 (self signed certificate in certificate chain)
Verify return code: 20 (unable to get local issuer certificate)
Cause: trust anchor not in trust store, or intermediate CA cert not provided.
Diagnosis: openssl verify -verbose to see which cert in the chain fails.
Fix: install root CA cert, or configure server to send full chain.
In Rust/rustls: RootCertStore must contain the root CA cert.
with_root_certificates(webpki_roots::TLS_SERVER_ROOTS) for public PKI.
add(cert) for private PKI trust anchors.