public void addTrustedCertificate(java.security.cert.X509Certificate cert)
Overrides:
addTrustedCertificate in class iaik.security.ssl.ChainVerifier
verifyChain
public boolean verifyChain(java.security.cert.X509Certificate[] chain,
iaik.security.ssl.SSLTransport transport)
Here's the hack that OpenSSL does.
If the chain contains the CA certificate it is replaced with the
local copy of the CA certificate. If the chain does not have the CA
certificate, the chain is just passed to the parent chain verifier.
The parent chain verifier will try to find the CA locally.
Overrides:
verifyChain in class iaik.security.ssl.ChainVerifier