[jboss-user] [JBoss Web Services Users] - Exception with X509 certificates on jbossws-native-3.1.1.GA

jorgerst do-not-reply at jboss.com
Fri Sep 25 16:27:17 EDT 2009


Hi!
  
  I'm having trouble to use WS-Security with X509 certificates. I've followed the instructions of the wiki ( http://www.jboss.org/community/wiki/JBossWS-NativeUserGuide#WSSecurity ). But when I invoke my service (using SoapUI, correctly configured with a X509 signed and encrypted SOAP request) I am getting the following exception:

ERROR [WSSecurityDispatcher] Internal error occured handling inbound message:
  | org.jboss.ws.extensions.security.exception.WSSecurityException: Currently only SubjectKeyIdentifiers are supported, was passed: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3

Plus, my jboss-wsse-server.xml is like this:


  | <jboss-ws-security xmlns="http://www.jboss.com/ws-security/config"
  | 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  | 	xsi:schemaLocation="http://www.jboss.com/ws-security/config jboss-wsse-server.xsd">    
  | 
  | 	<key-store-file>WEB-INF/wsse.keystore</key-store-file>
  | 	<key-store-password>jbossws</key-store-password>
  | 	<trust-store-file>WEB-INF/wsse.truststore</trust-store-file>
  | 	<trust-store-password>jbossws</trust-store-password>
  | 
  | 	<config>
  | 		<encrypt type="x509v3" alias="wsse" />
  | 		<sign type="x509v3" alias="wsse" />		
  | 		<requires>
  | 			<encryption />
  | 			<signature />
  | 		</requires>
  | 		<timestamp ttl="300" />
  | 	</config>
  | </jboss-ws-security>

  I'm using Sun JDK 1.5.0.15, JBoss AS 4.2.3 and jbossws-native-3.1.1.GA. 

  I'm not very familiar with the security stuff, so please, if anybody could help it will be great!
  
  Thanks in advance!

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

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



More information about the jboss-user mailing list