ws-security

stop WCF from caching / re-using security tokens (SecurityContextToken)

那年仲夏 提交于 2019-12-22 17:29:25
问题 I am using WCF Message level security with the following wsHttpBinding <security mode="Message"> <message clientCredentialType="Windows" establishSecurityContext="false" /> </security> Each time i call the service is a separate operation, and there is no need to keep any session state. I am running into a problem with load balancer, because WCF keeps re-using security tokens, so if the first call goes to NodeA, it creates a security token which is re-used. If that token is passed to NodeB

JAVA - CXF WS-security “A security error was encountered when verifying the message”

血红的双手。 提交于 2019-12-22 12:22:12
问题 Sorry for this question, it can appear recurrent by I'm completely blocked. I'm trying to implement a Web Service Server on top of CXF framework. Jax-ws is very helpful to handle a web service, it's easy to implement it. But, the problem come when you want to introduce security . To handle security in implement the following source code : EndpointImpl jaxWsEndpoint = (EndpointImpl) Endpoint.publish(endPointAddress, httpWebService); inProps.put("action", "UsernameToken Timestamp"); inProps.put

using axis2 ramaprt module with own security framework

落花浮王杯 提交于 2019-12-22 05:55:31
问题 I have webservice (server-side) implemented using axis2 in my project. We want to enable WS-security in the existing web services. We are evaluating if apache ramapart module fits our need. Here is our requirement: Basically we have in-house security framework which provides encryption,signature and token generation capabilites. Our in-house security framework basically requires a set of configurations in form of XML and it expose various APIs to do various security operations. Now with above

Is it possible to do a TLS handshake event in Tomcat?

假装没事ソ 提交于 2019-12-22 04:45:32
问题 I'm running an application (web service) in tomcat with TLS enabled (with certificates both for the client and the server). I want that my application will be able to send audit message (logging) when TLS handshake fails. For example I want to log when: the client certificate is expired, the client certificate is unknown (not in the server trust store) any other handshake failure Is there any event that I can catch and handle in order to do that? My application is web service based and is

Securing REST endpoint using spring security

点点圈 提交于 2019-12-22 04:13:07
问题 I am trying to provide security to the REST endpoints. I am following instructions from this page. In my case I don't have view hence I haven't created controller to specify the views and haven't added viewResolver in my AppConfig.java After implementation it correctly shows the access denied error upon calling a secured REST endpoint. But even though I specify username/password in the request header I get the access denied error. I am testing in postman setting username/password in Basic

Programmatically read encrypted error messages from webservice using metro 2.3

不打扰是莪最后的温柔 提交于 2019-12-22 00:03:19
问题 Using METRO 2.3 in Netbeans with WS-Security I try to read error messages of an encrypted webservice. The communication works fine until my payload contains errors. Then the server sends an encrypted error message with the information what went wrong. My client tries to decrypt it and understands that the message got another structure than expected and throws an XMLSignatureException: javax.xml.crypto.dsig.XMLSignatureException: WSS1717: Error occurred while doing digest verification of body

Creating Signed SOAP Message as a String with C#

有些话、适合烂在心里 提交于 2019-12-21 19:56:38
问题 I need to call web service that I have to send such soap request below by using C#. SoapBody and TimeStamp must be signed. <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:web="http://xyzt.com/"> <soap:Header> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <wsse:BinarySecurityToken EncodingType="http://docs

Creating Signed SOAP Message as a String with C#

三世轮回 提交于 2019-12-21 19:56:04
问题 I need to call web service that I have to send such soap request below by using C#. SoapBody and TimeStamp must be signed. <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:web="http://xyzt.com/"> <soap:Header> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <wsse:BinarySecurityToken EncodingType="http://docs

How to do WSSE Authentication implementation in android java according to php part within webserver?

时光总嘲笑我的痴心妄想 提交于 2019-12-21 06:42:01
问题 I use symfony2 for web server and use wsse authentication with x-wsse header. The question actually is about which exact functions I should use in Java to give the same result as in PHP. PHP part for header generation: $nonce = substr( md5( uniqid( 'nonce_', true ) ), 0, 16 ); $nonceHigh = base64_encode( $nonce ); $passwordDigest = base64_encode( sha1( $nonce . $created . $password . "{" . $user->getSalt() . "}", true ) ); $header = "UsernameToken Username=\"{$username}\", PasswordDigest=\"{

Getting “WS Security Header in the message is invalid.” when calling ACAGetTransmitterBulkRequestStatus

∥☆過路亽.° 提交于 2019-12-21 06:36:08
问题 I've been able to make successfull call to first ACA web service and I thought, that getting status would be a breeze. Bo-o-oy how I have been wrong! I've used same settings for the status service as I did for the submit one... and I got "WS Security header is invalid error!" What gives?!?! Signature generation code is the same as I been using for submission! I would appreciate if any one would be able shed some light what possibly is wrong here? I am aware, that following tags should be