Changes to support multiple tls connection

Jira issue: WP-860
Merge pull request #3 from habibvirji/master

Changes to support multiple tls connection