【问题标题】:How to decode encrypted soap messages with PHP如何使用 PHP 解码加密的肥皂消息
【发布时间】:2012-03-29 05:54:05
【问题描述】:

我在使用 PHP 中的加密 SOAP 消息时遇到了很多问题 我们正在获取类似

的数据
<?xml version="1.0" ?>
<xenc:EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element" 
  xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" 
  xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" 
  xmlns:dp="http://www.datapower.com/schemas/management">
 <dsig:KeyInfo xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
    <xenc:EncryptedKey Recipient="name:[NAME]">
        <xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/>
        <dsig:KeyInfo>
            <dsig:KeyName>[KEY_NAME]</dsig:KeyName>
        </dsig:KeyInfo>
        <xenc:CipherData>
            <xenc:CipherValue>[RSA_ENCRYPTED_PK]</xenc:CipherValue>
        </xenc:CipherData>
    </xenc:EncryptedKey>
 </dsig:KeyInfo>
 <xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/>
 <xenc:CipherData>
    <xenc:CipherValue>[ENCRYPTED_DATA_HERE]</xenc:CipherValue>
 </xenc:CipherData>
</xenc:EncryptedData>

我可以找到以下信息 http://wso2.org/library/knowledge-base/how-does-soap-message-encryption-work 但无法解密消息

我有正确的私钥

这是 SAML-2 iDP 帖子的一部分

有谁知道如何/有一个 PHP 库可以提供帮助吗?

你的

提姆

【问题讨论】:

    标签: php soap encryption ws-security


    【解决方案1】:

    尝试使用http://simplesamlphp.org/ 设置您的服务提供商。

    【讨论】:

      猜你喜欢
      • 2017-11-24
      • 1970-01-01
      • 2014-01-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多