简体   繁体   English

如何在 WSO2 ESB 4.9.0 策略文件中为 Digest 启用代理服务安全

[英]How to enable proxy service security in WSO2 ESB 4.9.0 Policy file for Digest

I have an issue using rampart in wso2 ESB to sign my soap messages, i use an XML policy attached to the outgoing endpoint, this policy need to specifies Password Digest as the algorithm to use for the digest (AlgorithmSuite : password Digest)我在 wso2 ESB 中使用城墙来签署我的肥皂消息时遇到问题,我使用附加到传出端点的 XML 策略,此策略需要将密码摘要指定为用于摘要的算法(AlgorithmSuite:密码摘要)

The problem is my wss security header is like below its set #PasswordText问题是我的 wss 安全标头就像低于它的设置 #PasswordText

<wsse:UsernameToken wsu:Id="UsernameToken-F8983EC106E3CD7A6915501268083805">
            <wsse:Username>userid</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
            <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">2DLoIevf9t75A7jm90+Anw==</wsse:Nonce>
            <wsu:Created>2019-02-14T06:46:48.379Z</wsu:Created>
         </wsse:UsernameToken>`enter code here`

what i need is wss security header like below its should set #PasswordDiges我需要的是 wss 安全标头,如下所示,它应该设置 #PasswordDiges

<wsse:UsernameToken wsu:Id="UsernameToken-F8983EC106E3CD7A6915501267560244">
            <wsse:Username>userid</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">SDSDSDDDSDDDDSDD==</wsse:Password>
            <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">SDSDRRERRsdDSDSDD==</wsse:Nonce>
            <wsu:Created>2019-02-14T06:45:56.024Z</wsu:Created>
         </wsse:UsernameToken>

How can i do to make wso2 ESB sign a soap message using passowrd Digest as the algorithm method for password digest ?我该如何使用密码摘要作为密码摘要的算法方法让 wso2 ESB 签署soap消息?

#PasswordDiges like below 

<sp:UsernameToken sp:IncludeToken="docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/…">
 <wsp:Policy> <sp:HashPassword/> <sp:WssUsernameToken11/> </wsp:Policy>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM