Announcement Announcement Module
No announcement yet.
XWSS Security Verification Error. Please help! Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • XWSS Security Verification Error. Please help!

    I am having problems sending and receiving signed messages. I get a Signature Verification Error. I have checked my truststore and keystore several times along with the configuration and I can't seem to find the issue. I have been trying for a couple of days. Can anyone help me. Here is my configurations



    <bean id="keyStoreHandler" class=" allback.KeyStoreCallbackHandler">
    <property name="trustStore" ref="trustStore"/>

    <bean id="trustStore" class=" t.KeyStoreFactoryBean">
    <property name="location" value="classpath:trust_store.jks"/>
    <property name="password" value="test"/>


    <xwss:SecurityConfiguration xmlns:xwss="">
    <xwss:RequireSignature requireTimestamp="false" />

    <bean id="signMessageCallback" class="">
    <constructor-arg value="securityPolicy.xml" />
    class=" allback.KeyStoreCallbackHandler">
    <property name="keyStore">
    <bean class=" t.KeyStoreFactoryBean">
    <property name="location" ref="signatureKeyStoreFile"/>
    <property name="password" value="@{signature.keystore.password}"/>
    <property name="defaultAlias" value="@{default.alias}"/>
    <property name="privateKeyPassword" value="@{privateKey.password}"/>
    <property name="soapAction" value="@{soap.action}" />

    <xwss:SecurityConfiguration dumpMessages="false" xmlns:xwss="">
    <xwss:Sign includeTimestamp="false" />

    The soap message seems to contain the signature when I send it and when I receive it. Attached is the trust store and key store files I am using. The keystore has the X509 certificate key/pair. I exported the certificate and created created the trust store with the certificate in it. I am signing the message with the keystore and hoping the trust store will accept it. Instead I am getting the Security Verification Error.

    Can someone please help me figure out what I am doing wrong?


  • #2
    Can you please help me?

    I am stuck in a bad situation. I am 2 weeks late delivering a simple web service to my customer. I am stuck trying to accept a signed soap message.

    I have looked at the examples and the documentation and the forums with no luck. I think my issue may be in the securityPolicy.xml but I am not sure. For the server, I have the truststore configured to accept the certificate that is being sent. The client application is configured to pull the certificate from the keystore and include it in the Binary Security Token.

    From the log files I see the PEM that is added to the soap header and confirm that it is in the trust store. Yet, I keep getting Security Verification Error despite it all. My tech stack is:

    Tomcat 5.5.25
    JDK 1.6.0 on Mac
    Spring WS 1.0.3 and even tried 1.5.0-m1

    I would be deeply indebted to you if you could assist me.