AGPUSH-559 support custom truststore

Added custom truststore support and tested it by using the integration tests.