'Android System WebView gave me a date invalid SSL certificate error but the certificate isn't expired
The error was basically this:
primary error: 4 certificate: Issued to: CN=*.analytics.yahoo.com,O=Oath Inc,L=Sunnyvale,ST=California,C=US;
Issued by: CN=DigiCert SHA2 High Assurance Server CA,OU=www.digicert.com,O=DigiCert Inc,C=US;
on URL: https://cms.analytics.yahoo.com/cms?partner_id=LVRMP
These are the error codes:
/**
* The certificate is not yet valid
*/
public static final int SSL_NOTYETVALID = 0;
/**
* The certificate has expired
*/
public static final int SSL_EXPIRED = 1;
/**
* Hostname mismatch
*/
public static final int SSL_IDMISMATCH = 2;
/**
* The certificate authority is not trusted
*/
public static final int SSL_UNTRUSTED = 3;
/**
* The date of the certificate is invalid
*/
public static final int SSL_DATE_INVALID = 4;
/**
* A generic error occurred
*/
public static final int SSL_INVALID = 5;
So error 4 is SSL_DATE_INVALID
When I check that domain I don't see any issues:

And no other app on the phone complains, my phones date is correct, in fact, I have been able to reload the site that had that resources without issues again.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
