[jboss-user] [JBossWS] - exception unwrapping private key - java.security.InvalidKeyE

wgmartinez do-not-reply at jboss.com
Mon Dec 18 09:22:46 EST 2006


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994682#3994682

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994682



More information about the jboss-user mailing list