piyush.shourie has asked for the wisdom of the Perl Monks concerning the following question:

Fellow Monks,

I am relatively new with XML. Could anybody please let me know the detailed process of digitally signing the XML data. Also please let me know the modules needed for digitally signing the XML document.

I have tried using Crypt::RSA, but that module provide simple signing, and not signing of XML content.

This is very urgent. Please help!

Replies are listed 'Best First'.
Re: urgent: XML signing
by kvale (Monsignor) on Oct 19, 2004 at 08:24 UTC
    Implementing XML Security is relatively complex. You take an XML file to be signed, a template that indicates the structure of the signature, algorithms to compute the signature, your public key, and combine according to XML-Signature Syntax and Processing.

    A basic tutorial explaining the process is at An Introduction to XML Digital Signatures

    I do not know of a Perl module that will implement this for you, but there is an excellent C library, xmlsec, that will sign, encrypt and canonicalize XML documents for you. It comes complete with a tutorial containing several simple examples.

    -Mark