When I call an API hosted on a secure server SSL (HTTPS) and the date time of the system are wrong (set manually) then we have following errors:
javax.net.ssl.SSLHandshakeException: Chain validation failed
java.security.cert.CertPathValidatorException: Response is unreliable: its validity interval is out-of-date
java.security.cert.CertPathValidatorException: Could not determine revocation status
Is there any way to allow application to load the response from an API even with wrong mobile date and time?
The strange issue is that all other apps are working fine even those that have APIs with HTTPS.
What changes I need to do so it allows mobile app to call the API (HTTPS) with wrong date time as well?