Return-Path: X-Original-To: apmail-ws-dev-archive@www.apache.org Delivered-To: apmail-ws-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 90D0D111E5 for ; Tue, 26 Aug 2014 13:37:59 +0000 (UTC) Received: (qmail 92453 invoked by uid 500); 26 Aug 2014 13:37:58 -0000 Delivered-To: apmail-ws-dev-archive@ws.apache.org Received: (qmail 92284 invoked by uid 500); 26 Aug 2014 13:37:58 -0000 Mailing-List: contact dev-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ws.apache.org Delivered-To: mailing list dev@ws.apache.org Received: (qmail 92271 invoked by uid 99); 26 Aug 2014 13:37:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Aug 2014 13:37:58 +0000 Date: Tue, 26 Aug 2014 13:37:58 +0000 (UTC) From: "Gene B. (JIRA)" To: dev@ws.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WSS-508) When using "add inclusive prefixes" and EXC C14N - signature cannot be validated MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WSS-508?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1411069= 8#comment-14110698 ]=20 Gene B. commented on WSS-508: ----------------------------- Not sure if this is relevant anymore, but here is some WebSphere (and sig p= rovider) stack info I was able to print: soap factory: com.ibm.ws.webservices.engine.xmlsoap.SOAPFactory=20 message factory: com.ibm.ws.webservices.engine.soap.MessageFactoryImpl=20 message impl type: com.ibm.ws.webservices.engine.Message=20 conn factory: com.ibm.ws.webservices.engine.soap.SOAPConnectionFactoryImpl= =20 signature factory: org.apache.jcp.xml.dsig.internal.dom.DOMXMLSignatureFact= ory=20 key info factory: org.apache.jcp.xml.dsig.internal.dom.DOMKeyInfoFactory=20 > When using "add inclusive prefixes" and EXC C14N - signature cannot be va= lidated > -------------------------------------------------------------------------= ------- > > Key: WSS-508 > URL: https://issues.apache.org/jira/browse/WSS-508 > Project: WSS4J > Issue Type: Bug > Components: WSS4J Core > Affects Versions: 2.0.0, 2.0.1 > Environment: WAS 7.x, IBM JDK 1.6, WebSphere JAX-WS stack, MS Win= dows. > Reporter: Gene B. > Assignee: Colm O hEigeartaigh > Attachments: log 01 - signature verification failed with Inclusiv= eNamespaces PrefixList.txt, log 02 - signature verification ok - signed by = SOAP UI.txt, log_03a - consumer - sign message use InclusiveNamespaces pref= ix list.txt, log_03b - provider - signature verification failed.txt, reques= t1-printedby-provider-signedby-soapui.xml, request1-printedby-provider-sign= edby-wss4j.xml > > > Security implemented using WSS4J securement/validation action approach. W= e are trying to sign the body. > The provider is a JAX-WS service running on WebSphere JAX-WS stack. Custo= m handler uses WSS4j to validate security.=20 > The consumer is a WebSphere JAX-WS dispatch client =E2=80=93 also attachi= ng custom security handler. > Signature can be validated on the provider side when EXC C14N canonicaliz= ation is specified with BST compliance flag relaxed. That is because when w= e chose to add =E2=80=9CInclusiveNamespaces=E2=80=9D =E2=80=9CPrefixList=E2= =80=9D on the consumer side, verification fails. When the same test is done= with the SOAP UI =E2=80=93 signature verifies Ok =E2=80=93 so I am blaming= the consumer =E2=80=93 the signing process - not verification process. > I am attaching a log file which shows verification failure when the Inclu= siveNamespaces option is used. If not for this option =E2=80=93 this verifi= cation would=E2=80=99ve been a success. -- This message was sent by Atlassian JIRA (v6.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org For additional commands, e-mail: dev-help@ws.apache.org