wordpress-mobile/WordPress-Android — pull request #1500 by daniloercoli (2014-06-12 11:28:13+00:00)
Title: Re-add support for Self hosted sites that share one SSL certificate

Fix #1487

This PR includes the following changes:
- SSL certs host name verifier: Switched to BrowserCompatHostnameVerifier that is the host name verifier that works the same way as Curl and Firefox.
- Includes a fix for #1487 - When a certificate fails the host name verification we need to check it against our SSLTrust store. The certificate could be added to the trusted certificates pool. If it's not added we need tho show the "Trust this cert" details screen.

With this patch merged in the code, the app works fine with the following configurations:
- Self-signed SSL cert
- Shared SSL cert
- Self-signed shared SSL cert
- SNI