ws-security

Working algorithm for PasswordDigest in WS-Security

拥有回忆 提交于 2019-12-03 19:38:09
问题 I'm having trouble with WS-Security, and creating a nonce and password digest that is correct. I am successfully using SoapUI to send data to an Oracle system. So I'm able to intercept SoapUI's call (change proxy to 127.0.0.1 port 8888 to use Fiddler where it fails because it's over SSL) - intercepting is important because these values can only be used once. I can then grab the nonce, created timestamp and password digest put them into my code (I've only got 30 seconds to do this as the

cxf+spring实现ws-security的数字证书验证方式

前提是你 提交于 2019-12-03 19:21:31
第一步 生成可用的数字证书 使用命令行打开您要生成数字证书的路径 生成证书还是比较麻烦的,要用到 jdk 的一个工具 ——keytool 首先,创建客户端 KeyStore 和公钥 在命令行运行: 1 、创建私钥和 KeyStore : keytool -genkey -alias clientprivatekey -keypass keypass -keystore Client_KeyStore.jks -storepass storepass -dname "CN=tongtech.com,C=CN" -keyalg RSA 创建 KeyStore ,文件名字为 Client_KeyStore.jks ,里面有个名为 clientprivatekey 的私钥。 2 、给私钥进行自签名: keytool -selfcert -keystore Client_KeyStore.jks -storepass storepass -alias clientprivatekey -keypass keypass 签名成功,无任何提示。 3 、导出私钥 作用是导出的证书将作为公钥保存到 TrustStore 中。 keytool -export -alias clientprivatekey -file Client_PublicCert.cer -keystore Client

WS-Security using the ASMX file in ASP.NET 3.5

。_饼干妹妹 提交于 2019-12-03 18:00:30
问题 Basically I need to setup my ASMX file so that when I pull it up in a browser to display the WebMethod specification the Soap Header conforms to this format: <soap:Header> <wsse:Security> <wsse:UsernameToken wsu:Id='SecurityToken-securityToken'> <wsse:Username>Username</wsse:Username> <wsse:Password>Password</wsse:Password> <wsu:Created>Timestamp</wsu:Created> </wsse:UsernameToken> </wsse:Security> </soap:Header> Back-story: I'm integrating with a client application that is already built (and

implementing Ws-security within WCF proxy

和自甴很熟 提交于 2019-12-03 13:54:57
问题 I have imported an axis based wsdl into a VS 2008 project as a service reference. I need to be able to pass security details such as username/password and nonce values to call the axis based service. I have looked into doing it for wse, which i understand the world hates (no issues there) I have very little experience of WCF, but have worked how to physically call the endpoint now, thanks to SO, but have no idea how to set up the SoapHeaders as the schema below shows: <S:Envelope xmlns:S=

Consume a Web Service that requires WS-Security from ASP.NET 4.5 Application

南楼画角 提交于 2019-12-03 13:29:56
问题 I need to consume a web service that requires WS-Security based on X.509 certificates from ASP.NET 4.5 application. So far i have created the web reference but i don't know how implement WS-Security. I have no problem with getting the certificate, but i don't know how to use it in this case, i need to get advice on how to proceed. My code so far is very basic, i need to add WS-Security to it: var tere = new serviciotereSoapClient(); tere.ClientCredentials.ClientCertificate.Certificate =

Implementing password digest for ws-security UsernameToken in Java

别等时光非礼了梦想. 提交于 2019-12-03 09:11:14
I am trying to make a call to a ws-security secured webservice from a server which unfortunately does not support this natively. The approach I have taken is to implement a .jsp which acts as reverse proxy to the actual end point URL, in the process adding the element with ws-security elements. This seems to be working quite well and I am confident I've constructed the XML correctly with the correct namespaces etc. I've verified this by comparing the XML with XML produced by SOAP-UI. The problem is in implementing the password digest generator. I don't get the same result as what SOAP-UI does

WSIT/Metro doesn't understand Security SOAP header

泪湿孤枕 提交于 2019-12-03 07:54:35
I'm using WSIT/Metro to create a simple web-service. I'm getting the following error on the server when a client tries to connect with a simple username/passowrd authentication scheme: 2010.03.31. 19:10:33 com.sun.xml.ws.protocol.soap.MUTube getMisUnderstoodHeaders INFO: Element not understood={http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security I have no idea how to make WSIT understand the Security block. The request I get from the client: <?xml version="1.0" encoding="http://www.w3.org/2003/05/soap-envelope" standalone="no"?> <soapenv:Envelope xmlns

Apache CXF - credentials not being sent from WSS4JOutInterceptor?

烈酒焚心 提交于 2019-12-03 06:27:35
I am trying to connect to a web service using WS-Security UsernameToken spec 1.0, using apache cxf 2.4.0. I've copied the code below from the CXF docs, but am getting: org.apache.cxf.ws.policy.PolicyException: No username available MyService_Service ss = new MyService_Service(wsdlURL, SERVICE_NAME); MyService port = ss.getBasicHttpBindingMyService (); Client client = ClientProxy.getClient(port); Endpoint cxfEndpoint = client.getEndpoint(); Map<String,Object> outProps = new HashMap<String,Object>(); outProps.put(WSHandlerConstants.ACTION, WSHandlerConstants.USERNAME_TOKEN); outProps.put

WCF Service with WS-Security requires Signed Timestamp only

自闭症网瘾萝莉.ら 提交于 2019-12-03 06:26:51
I need to provide a service to a third-party that will be sending soap messages with a signed Timestamp. How can I configure my service to support this? UPDATE I've managed to get close to the format of the Soap message that we're after but WCF insists on signing both the username and the timestamp tokens, Is there a way to modify the binding to only sign the timestamp? Further Update Here are our requirements: The Timestamp element MUST be signed. The CN name on the certificate used for signing MUST match the Username give in the UsernameToken element. The certificate used for signing MUST be

Consume a Web Service that requires WS-Security from ASP.NET 4.5 Application

故事扮演 提交于 2019-12-03 03:31:26
I need to consume a web service that requires WS-Security based on X.509 certificates from ASP.NET 4.5 application. So far i have created the web reference but i don't know how implement WS-Security. I have no problem with getting the certificate, but i don't know how to use it in this case, i need to get advice on how to proceed. My code so far is very basic, i need to add WS-Security to it: var tere = new serviciotereSoapClient(); tere.ClientCredentials.ClientCertificate.Certificate = myCert; var response = tere.agregarGuia( guia ); Service configuration: <system.serviceModel> <bindings>