Menu

preserve the signature at serialization

Help
Anonymous
2012-02-13
2013-06-06
  • Anonymous

    Anonymous - 2012-02-13

    Hi,
    i have a problem with moment that nusoap serialize the envelope, he modify the signature values like that:

    original value

    <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
                <SignedInfo>
                    <CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
                    <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
                    <Reference URI="#Lote">
                        <Transforms>
                            <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
                        </Transforms>
                        <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
                        <DigestValue></DigestValue>
                    </Reference>
                </SignedInfo>
                <SignatureValue></SignatureValue>
                <KeyInfo>
                    <X509Data>
                        <X509Certificate></X509Certificate>
                    </X509Data>
                </KeyInfo>
            </Signature>
    

    result value

    <Signature>
        <SignedInfo>
            <CanonicalizationMethod xmlns="http://www.w3.org/2000/09/xmldsig#"></CanonicalizationMethod>
            <SignatureMethod xmlns="http://www.w3.org/2000/09/xmldsig#"></SignatureMethod>
            <Reference xmlns="http://www.w3.org/2000/09/xmldsig#">
                <Transforms xmlns="http://www.w3.org/2000/09/xmldsig#">
                    <Transform xmlns="http://www.w3.org/2000/09/xmldsig#"></Transform>
                </Transforms>
                <DigestMethod xmlns="http://www.w3.org/2000/09/xmldsig#"></DigestMethod>
                <DigestValue xmlns="http://www.w3.org/2000/09/xmldsig#"></DigestValue>
            </Reference>
        </SignedInfo>
        <SignatureValue></SignatureValue>
        <KeyInfo>
            <X509Data xmlns="http://www.w3.org/2000/09/xmldsig#">
                <X509Certificate></X509Certificate>
            </X509Data>
        </KeyInfo>
    </Signature>
    

    Thanks for the help! :)

     
  • Anonymous

    Anonymous - 2012-02-13

    Complementing.
    On the libs of the nuSoap, i dont see in the file, any string like that: "http://www.w3.org/2000/09/xmldsig#".
    How to solve this?

     

Log in to post a comment.