DSB_IT_Support
14 years agoOccasional Contributor
Outgoing WSS signing does not seem to work
I am trying to digitally sign the outgoing messages from soapUI.
I have successfully installed a private X.509 certificate
I have configured outgoing WSS as follows:
- Keystore: Name of my Java keystore file
- Alias: The alias associated with the private key used for signing
- Password: The keystore password
- Key Identifier type: X.509 Certificate
- Signature Algorithm: http://www.w3c.org/2000/09/xmldsig/#rsa-sha1
- Signature Canonicalization: http://www.w3c.org/TR/2001/REC-xml-c14n-20010315
- Digest Algorithm: http://www.w3c.org/2000/09/xmldsig/#sha1
- Use Single Certificate: Yes
- Parts: No parts specified
I have then selected the configuration as Outgoing WSS for an end-point.
When I now submit a WS-request to this end-point I expect to see the signature as part of the request, however what I see is the following:
Hence, I do not see any signature in the outgoing response.
There are no errors in the error log, so according to soapUI everything went well...
Could you please specify what is wrong in the configuration?
I have successfully installed a private X.509 certificate
I have configured outgoing WSS as follows:
- Keystore: Name of my Java keystore file
- Alias: The alias associated with the private key used for signing
- Password: The keystore password
- Key Identifier type: X.509 Certificate
- Signature Algorithm: http://www.w3c.org/2000/09/xmldsig/#rsa-sha1
- Signature Canonicalization: http://www.w3c.org/TR/2001/REC-xml-c14n-20010315
- Digest Algorithm: http://www.w3c.org/2000/09/xmldsig/#sha1
- Use Single Certificate: Yes
- Parts: No parts specified
I have then selected the configuration as Outgoing WSS for an end-point.
When I now submit a WS-request to this end-point I expect to see the signature as part of the request, however what I see is the following:
POST http://eris.dsb.dk:8200/AdresseSoegningService/AdresseSoegningServicePS HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "hentLandeListe"
User-Agent: Jakarta Commons-HttpClient/3.1
Host: eris.dsb.dk:8200
Proxy-Connection: Keep-Alive
Content-Length: 779
<soapenv:Envelope xmlns:adr="http://ic.dsb.dk/kundekerne/adresse/AdresseSoegning" xmlns:ihe="http://ic.dsb.dk/iheader" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<ihe:IgpHeader xmlns:ihe="http://ic.dsb.dk/iheader">
<ihe:Afsender>
<ihe:AfsenderID>aeb34c46-1653-42cc-8f26-20c505e5519c</ihe:AfsenderID>
</ihe:Afsender>
<ihe:OprettelsesTid>2011-11-17T11:44:18</ihe:OprettelsesTid>
<ihe:ReferenceNr>806a314d-47a1-1a87-2ec6-cb4fd015e937</ihe:ReferenceNr>
</ihe:IgpHeader>
</soapenv:Header>
<soapenv:Body wsu:Id="id-38" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<adr1:hentLandeListe xmlns:adr1="http://ic.dsb.dk/kundekerne/adresse/AdresseSoegningService"/>
</soapenv:Body>
</soapenv:Envelope>
Hence, I do not see any signature in the outgoing response.
There are no errors in the error log, so according to soapUI everything went well...
Could you please specify what is wrong in the configuration?