Added initial support for trusted certificates.