title: certificate for ssl connection does not recognized from cmd
body: <p>I wrote an application that while running connects to SSL address.
  I have added the certificate to the key store using the next line in cmd:
  <code>keytool -import -alias cddis-caster.gsfc.nasa.gov 
  -keystore "C:\Program Files (x86)\Java\jdk1.8.0_101\jre\lib\security\cacerts" 
  -file "D:\projects\Certificates\cddis-caster.gsfc.nasa.gov.crt"</code>.
  The application is running smoothly.</p>
  
  <p>Next i have created a jar file which can be run from cmd.
  While running the application from cmd i receive an error while trying to connect to the SSL address, it says it can not find the certificate.
  <code>javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target</code></p>
  
  <p>While connecting to a non SSL address it runs fine.</p>
  
  <p>How can i solve this problem? where do i have to place the certificate in order to run the executable jar file?
  Any help would be appreciated. Thank you.  </p>