Added support for trusted certificates.