Enhancement/ssl pinning

This resolves issue #41