Made the CA path configurable and tried to fix ssl cert verification for custom CA paths