[jira] [Commented] (RAMPART-319) org.apache.axis2.AxisFault: Error in signature with X509Token

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (RAMPART-319) org.apache.axis2.AxisFault: Error in signature with X509Token

JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/RAMPART-319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16268187#comment-16268187 ]

abhijit jana commented on RAMPART-319:
--------------------------------------

hi I am also facing Error in signature with X509Token
Version Rampart-1.7.0, Axis2-1.7.0 ,apache-tomcat-8.0.47  and below is my service.xml file


<service name="MyService" >
    <module ref="rampart"/>
        <Description>
                Please Type your service description here
        </Description>
        <messageReceivers>
                <!-- <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only" class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
                <messageReceiver  mep="http://www.w3.org/2004/08/wsdl/in-out"  class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> -->
                <messageReceiver mep="http://www.w3.org/ns/wsdl/in-only" class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
                <messageReceiver mep="http://www.w3.org/ns/wsdl/in-out" class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
        </messageReceivers>
        <parameter name="ServiceClass" locked="false">com.MyService</parameter>
        <wsp:Policy wsu:Id="SigOnly" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
                <wsp:ExactlyOne>
                        <wsp:All>
            <sp:AsymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
                <wsp:Policy>
                    <sp:InitiatorToken>
                           <wsp:Policy>
                                   <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
                                           <wsp:Policy>
                                                   <sp:WssX509V3Token10/>
                                           </wsp:Policy>
                                    </sp:X509Token>
                            </wsp:Policy>
                    </sp:InitiatorToken>
                         <sp:RecipientToken>
                                 <wsp:Policy>
                                         <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
                                                 <wsp:Policy>
                                                         <sp:WssX509V3Token10/>
                                                 </wsp:Policy>
                                         </sp:X509Token>
                                 </wsp:Policy>
                         </sp:RecipientToken>
                         <sp:AlgorithmSuite>
                                 <wsp:Policy>
                                         <sp:TripleDesRsa15/>
                                 </wsp:Policy>
                         </sp:AlgorithmSuite>
                         <sp:Layout>
                                 <wsp:Policy>
                                         <sp:Strict/>
                                 </wsp:Policy>
                         </sp:Layout>
                         <sp:IncludeTimestamp/>
                         <sp:OnlySignEntireHeadersAndBody/>
                    </wsp:Policy>
                </sp:AsymmetricBinding>
                <sp:Wss10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
                <wsp:Policy>
                       <sp:MustSupportRefKeyIdentifier/>
                        <sp:MustSupportRefIssuerSerial/>
                </wsp:Policy>
                </sp:Wss10>
               <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
                        <sp:Body/>
                </sp:SignedParts>
                <ramp:RampartConfig xmlns:ramp="http://ws.apache.org/rampart/policy">
                        <ramp:user>service</ramp:user>
                        <ramp:passwordCallbackClass>com.PWCBHandler</ramp:passwordCallbackClass>

                        <ramp:signatureCrypto>
                                <ramp:crypto provider="org.apache.ws.security.components.crypto.Merlin">
                                        <ramp:property name="org.apache.ws.security.crypto.merlin.keystore.type">JKS</ramp:property>
                                        <ramp:property name="org.apache.ws.security.crypto.merlin.file">D:\test_Axis2\service.jks</ramp:property>
                                        <ramp:property name="org.apache.ws.security.crypto.merlin.keystore.password">service</ramp:property>
                                </ramp:crypto>
                        </ramp:signatureCrypto>
                </ramp:RampartConfig>
            </wsp:All>
        </wsp:ExactlyOne>
        </wsp:Policy>
</service>


> org.apache.axis2.AxisFault: Error in signature with X509Token
> -------------------------------------------------------------
>
>                 Key: RAMPART-319
>                 URL: https://issues.apache.org/jira/browse/RAMPART-319
>             Project: Rampart
>          Issue Type: Bug
>            Reporter: nitin kumar
>            Assignee: Thilina Buddhika
>              Labels: X509Token
>
> org.apache.axis2.AxisFault: Error in signature with X509Token
> at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:70)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]