Added support for Client Certificates in the .NET client

- Incorporated changes as per code review feedback
#1303
Made changes as per code-review feedback

#1303