title: JDK can not find valid certification path
body: <p>I have problem with certificate. This is my stack trace:</p>
  
  <pre><code>trustStore is: /usr/user/programs/java/jdk1.7.0_10/jre/lib/security/jssecacerts
  trustStore type is : jks
  trustStore provider is : 
  init truststore
  adding as trusted cert:
  Subject: EMAILADDRESS=******, CN=865409164, OU=http://www.sistem.net, O=DOO, L=Citluk,   ST=Text, C=BA
  Issuer:  EMAILADDRESS=***********, CN=ecommtest.rbbh.ba, OU=ITRIOSS.CARD, O=BANK, L=CITY, ST=******, C=BA
  </code></pre>
  
  <p>Algorithm: RSA; Serial number: 0xf6e5b0e213f9b11b
     Valid from Tue Jul 30 14:43:23 CEST 2013 until Wed Jul 30 14:43:23 CEST 2014</p>
  
  <p>and at the end I got this:</p>
  
  <pre><code>***
  %% Invalidated:  [Session-1, TLS_RSA_WITH_AES_128_CBC_SHA]
  main, SEND TLSv1 ALERT:  fatal, description = certificate_unknown
  main, WRITE: TLSv1 Alert, length = 2
  [Raw write]: length = 7
  0000: 15 03 01 00 02 02 2E                               .......
  main, called closeSocket()
  main, handling exception: 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
  main, IOException in getSession():  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
  main, called close()
  main, called closeInternal(true)
  </code></pre>
  
  <p>I've got certifacte as PKCS12, then I importkeystore by keytool in jssecacerts and copy it in JDK/jre/lib/security</p>
  
  <p>I use apache HttpClient to execute POST request.</p>
  
  <p>Thanks for any help</p>
  
  <p>Zlaja</p>