title: Exceptions with SSL Code
body: <p>I'm having a problem that I can't figure it out. I'm testing a SSL code that connects to a remote website, and everything works great on my computer. BTW, I imported the certificate from the website with:</p>
  <pre><code>keytool -importcert -keystore /java/path/to/cacerts -trustcacerts -alias “Cert Alias” -file website_certificate.cer
  </code></pre>
  <p>The problem appears when I upload and test the code on the server. I get the following exceptions:</p>
  <blockquote>
  <p>Caused by: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed</p>
  <p>Caused by: java.security.cert.CertPathValidatorException: timestamp check failed</p>
  <p>Caused by: java.security.cert.CertificateExpiredException: NotAfter:</p>
  </blockquote>
  <p>I checked the date on the server and it is up to date, and the certificate expires on 2012.</p>
  <p>Any help will be appreciated.</p>