2 Replies Latest reply on Nov 21, 2005 6:11 AM by marco volpe

    validate sun certificate

    marco volpe Newbie


      I'have a problem while accessing to a web site via automatic test:
      The url requested need of 2 certificates, I dowloaded both of them and I registered them by using keytool :
      keytool -import -alias c1 -file c1.cer
      keytool -import -alias c2 -file c2.cer
      Now I've 2 certificate in my keystore (C:\Documents and Settings\user\.keystore).
      Then I modified my jboss service script like this:

      @echo off
      set SERVICE_NAME=JBoss
      set CONF=jbpm
      set KEYPATH="D:\Documents and Settings\user"
      set JDK=%JAVA_HOME%
      set JBOSS_BIN=%JBOSS_HOME%\bin
      set INITIAL_MEM=512M
      set MAX_MEM=1024M
      JavaService.exe -install %SERVICE_NAME% %JDK%\jre\bin\server\jvm.dll -Djava.class.path=%JDK%\lib\tools.jar;%JBOSS_BIN%\run.jar -Djavax.net.ssl.trustStore=%KEYPATH%\.keystore -Djavax.net.ssl.trustStorePassword=consip -Xms%INITIAL_MEM% -Xmx%MAX_MEM% -start org.jboss.Main -params "-c%CONF%" -stop org.jboss.Main -method systemExit -out %JBOSS_BIN%\stdout.log -err %JBOSS_BIN%\stderr.log -current %JBOSS_BIN%

      but the following exception occured:

      21:59:56,859 INFO [STDOUT] javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorEx
      ception: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: una
      ble to find valid certification path to requested target
      21:59:56,859 INFO [STDOUT] at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:
      21:59:56,859 INFO [STDOUT] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.j
      21:59:56,859 INFO [STDOUT] at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:
      21:59:56,859 INFO [STDOUT] at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:

      can anyone help me?

      best regards