title: added certificate to java keystore, still error
body: <p>Based on various web inputs, I have followed the following steps to add certificate to my local jdk keystore:</p>
  
  <ol>
  <li><p>Downloaded the certificates by hitting the following command from a Linux host: openssl s_client -connect MyService:443 -showcerts</p></li>
  <li><p>Copied the content between (and including) ------BEGIN CERTIFICATE-------- and --------END CERTIFICATE---------, saved it as C:\Java\jre\lib\security\cer1.cer</p></li>
  <li><p>Typed: C:\Java\jre\bin>keytool -keystore C:\Java\jre\lib\security\cacerts -importcert -alias cer1 -file C:\Java\jre\lib\security\cer1.cer</p></li>
  </ol>
  
  <p>This showed a message the certificate added successfully. Which i verified by using list command for keytool</p>
  
  <ol start="4">
  <li>Then i restarted my machine, and tried to run my Java program again, but still keep getting error:     </li>
  </ol>
  
  <p>"sun.security.validator.ValidatorException: PKIX path building failed:     sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid     certification path to requested target"</p>
  
  <p>JDK Used: 1.8.0_31, Windows 7</p>
  
  <p>Please help!</p>