title: Import Windows certificates to Java
body: <p>I have a java server that is trying to connect to an external Ldap server through SSL (as a client in order to perform queries).</p>
  
  <p>I'm having trouble connecting since the certificate they send me upon connecting is trusted only in my local windows Truststore but is not present in java truststore (cacerts).</p>
  
  <p>Is there a way to tell Java to trust any certificate that windows would have trust?</p>
  
  <p>Or, alternatively, is there a way to import all trusted certificates from windows truststore to Java's cacerts?</p>
  
  <p>Any idea would be appreciated. </p>