2012-03-29 114 views
2

我在PHP中 與加密的SOAP消息大量問題我們越來越像如何加密的SOAP消息與PHP

<?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 但不能解碼管理對消息進行解密

我有正確的私鑰

這是S的一部分SAML-2的iDP後

有誰知道如何/一個PHP庫可以幫助嗎?

此致

回答