title: SunCertPathBuilderException => Maven JAXB2 generation with certificate
body: <p>I'm using maven-jaxb2, to generate classes to make calls to a webservice.</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.jvnet.jaxb2.maven2&lt;/groupId&gt;
      &lt;artifactId&gt;maven-jaxb2-plugin&lt;/artifactId&gt;
      &lt;version&gt;0.12.3&lt;/version&gt;
      &lt;configuration&gt;
          &lt;schemaLanguage&gt;WSDL&lt;/schemaLanguage&gt;
          &lt;schemas&gt;
              &lt;schema&gt;
                  &lt;url&gt;https://my-secured-webservice.com/file?wsdl&lt;/url&gt;
              &lt;/schema&gt;
          &lt;/schemas&gt;
          &lt;generateDirectory&gt;src\main\java&lt;/generateDirectory&gt;
          &lt;verbose&gt;true&lt;/verbose&gt;
      &lt;/configuration&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;phase&gt;generate-sources&lt;/phase&gt;
              &lt;goals&gt;
                  &lt;goal&gt;generate&lt;/goal&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>The wsdl needs a certificate which is correctly installed on my machine. I can access the wsdl with my browser. </p>
  
  <p>I've added 2 properties with the properties-maven-plugin </p>
  
  <pre><code>&lt;property&gt;
      &lt;name&gt;javax.net.ssl.keyStore&lt;/name&gt;
      &lt;value&gt;/path/to/JKS/file.jks&lt;/value&gt;
  &lt;/property&gt;
  &lt;property&gt;
      &lt;name&gt;javax.net.ssl.keyStorePassword&lt;/name&gt;
      &lt;value&gt;my-super-secret-password&lt;/value&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>I've created my jks file by:</p>
  
  <pre><code>keytool -importkeystore -deststorepass my-super-secret-password -destkeystore /path/to/JKS/file.jks -srckeystore /path/to/file.p12 -srcstoretype PKCS12
  </code></pre>
  
  <p>When the I'm triggering mvn:generate-sources, I've got following error popping up:</p>
  
  <pre><code>com.sun.istack.SAXParseException2; IOException thrown when processing "https://my-secured-webservice.com/file?wsdl". 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.
  </code></pre>
  
  <p>What am I doing wrong? </p>