title: SSL certificate expired in android app but not in pc/mobile browsers
body: <p>So here's a weird situation. I have a website running on https. I also have an app on android which leverages this website to make rest API calls. Everything was working fine until now. Recently my hoster changed something and everything is falling apart. When I fire rest request from browser it works fine. But when I do it using the app it doesn't work and I get this exception:</p>
  
  <blockquote>
    <p>javax.net.ssl.SSLHandshakeException: com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: 
    Could not validate certificate: Certificate expired at Thu Aug 21 06:03:34 EDT 2014 (compared to Sat Aug 22 17:41:59 EDT 2015) 
    at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java</p>
  </blockquote>
  
  <p>But everything working fine on pc and I double checked the certificates are expiring on 2016.</p>
  
  <p>So I went a step further and tried to browsershot my website and I got some funny results. Out of 300 browsers I got the same issue in a couple of them.</p>
  
  <p><a href="http://i.stack.imgur.com/d86tE.png" rel="nofollow">http://i.stack.imgur.com/d86tE.png</a>
  <br>
  <a href="http://oi60.tinypic.com/30ml1n4.jpg" rel="nofollow">http://oi60.tinypic.com/30ml1n4.jpg</a></p>
  
  <p>Also I'm now getting this warning in my host while installing SSL.</p>
  
  <blockquote>
    <p>"Note: You do not have a dedicated IP address. As a result, web browsers that do not support SNI will probably give false security warnings to your users when they access any of your SSL websites. Microsoft® Internet Explorer™ on Windows XP™ is the most widely used web browser that does not support SNI."</p>
  </blockquote>
  
  <p>I'm not 100% sure whether this warning was there earlier or not but I'm just trying to put the pieces together.</p>
  
  <p>There is nothing wrong with the code as my apps on the phone have stopped working which was working earlier.</p>