0 Replies Latest reply on Dec 18, 2006 9:22 AM by Willy Martinez

    exception unwrapping private key - java.security.InvalidKeyE

    Willy Martinez Newbie

      Hi there,

      I am trying to port BouncyCastle on to JBoss 4.0.4GA. My client code (which is a WSS4J client) works on command line but I get the exception in the subject of this query when I trigger the client from a JSP.

      The bouncy jar bcprov-jdk15-134.jar is in the WEB-INF/lib. The client-config.wsdd, the certificate and the reference to the crypto.properties files are all located under WEb-INF/com.

      The crypto.properties file contain the lines below:
      org.apache.ws.security.crypto.merlin.keystore.type=PKCS12
      org.apache.ws.security.crypto.merlin.keystore.password=servicemaker
      org.apache.ws.security.crypto.merlin.alias.password=servicemaker
      org.apache.ws.security.crypto.merlin.file=BT_SDK_Application_Certificate.pfx
      org.apache.ws.security.crypto.merlin.keystore.alias=c6542fec5983bf8a0ef603d6866e8b89_d33ef4d9-4542-4a1c-88a7-2c129a9c558f
      org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin


      The client-config.wsdd contains the lines below:

      <!--
      Axis client config file
      -->
      <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">






























































      The installation documentation in JBoss-WS tells me to put the create an entry in the java.security file under jre/lib/security which I have done which is why the command line works.

      Has anyone experienced this?

      I appreciate your help.
      willy