title: Getting 'java.security.cert.CertPathValidatorException: timestamp check failed' but certificate is not expired and working on in other server
body: <p>We are in process to upgrade our environments and which include weblogic server upgrade as well. Currently we have UAT running on Weblogic 10.3.6 which connect to database from one other application and we use SHA1 certificate for securing the connection.</p>
  
  <p>Now we are upgrading to Weblogic 12.1.3 and using same certificate, server is not able to connect to database and giving below error,</p>
  
  <pre><code>Caused by: org.springframework.jdbc.UncategorizedSQLException: Executing query; uncategorized SQLException for SQL [SELECT * FROM DATAROOM]; SQL state [null]; error code [0]; java.security.PrivilegedActionException: weblogic.jdbc.extensions.ConnectionDeadSQLException: weblogic.common.resourcepool.ResourceDeadException: 0:weblogic.common.ResourceException: Could not create pool connection for datasource 'GOV-UDAM-VIEWER'. The DBMS driver exception was: [FMWGEN][SQLServer JDBC Driver]SSL handshake failed: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed; nested exception is java.sql.SQLException: java.security.PrivilegedActionException: weblogic.jdbc.extensions.ConnectionDeadSQLException: weblogic.common.resourcepool.ResourceDeadException: 0:weblogic.common.ResourceException: Could not create pool connection for datasource 'GOV-UDAM-VIEWER'. The DBMS driver exception was: [FMWGEN][SQLServer JDBC Driver]SSL handshake failed: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed
      at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:84)
      at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
      at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
      at org.springframework.batch.item.database.AbstractCursorItemReader.initializeConnection(AbstractCursorItemReader.java:427)
      at org.springframework.batch.item.database.AbstractCursorItemReader.doOpen(AbstractCursorItemReader.java:402)
      at org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader.open(AbstractItemCountingItemStreamItemReader.java:139)
      ... 18 more
  Caused by: java.sql.SQLException: java.security.PrivilegedAction
  </code></pre>
  
  <p>As per my understanding this error comes when server is expired but in this case server in valid and moreover our old UAT is able to connect to server.</p>
  
  <p>Please help me to drill down this issue.</p>