Digitally Signing a XML Document (using SHA1+RSA or SHA1+DSA)
Anurag Chourasia
anurag.chourasia at gmail.com
Mon Dec 27 16:55:57 EST 2010
Hi All,
I have a requirement to digitally sign a XML Document using SHA1+RSA
or SHA1+DSA
Could someone give me a lead on a library that I can use to fulfill this
requirement?
The XML Document has values such as
<RSASK>-----BEGIN RSA PRIVATE KEY-----
MIIBOgIBAAJBANWzHfF5Bppe4JKlfZDqFUpNLrwNQqguw76g/jmeO6f4i31rDLVQ
n7sYilu65C8vN+qnEGnPB824t/A3yfMu1G0CAQMCQQCOd2lLpgRm6esMblO18WOG
3h8oCNcaydfUa1QmaX0apHlDFnI7UDXpYaHp2VL9gvtSJT5L3ZASMzxRPXJSvzcT
AiEA/16jQh18BAD4q3yk1gKw19I8OuJOYAxFYX9noCEFWUMCIQDWOiYfPtxK3A1s
AFARsDnnHTL4FbRPpiZ79vP+VgqojwIhAKo/F4Fo/VgApceobeQByzqMKCdBiZVd
g5ZU78AWA5DXAiEAjtFuv389hz1eSAA1YSAmmhN3UA54NRlu/U9NVDlccF8CIBkc
Z52oGxy/skwVwI5TBcB1YqXJTT47/6/hTAVMTwaA -----END RSA PRIVATE
KEY-----</RSASK>
<RSAPUBK>-----BEGIN PUBLIC KEY-----
MFowDQYJKoZIhvcNAQEBBQADSQAwRgJBANWzHfF5Bppe4JKlfZDqFUpNLrwNQqgu
w76g/jmeO6f4i31rDLVQn7sYilu65C8vN+qnEGnPB824t/A3yfMu1G0CAQM= -----END PUBLIC
KEY-----</RSAPUBK>
And the XML also has another node that has a Public Key with Modules and
Exponents etc that I apparently need to utilize.
<RSAPK>
<M>1bMd8XkGml7gkqV9kOoVSk0uvA1CqC7DvqD+OZ47p/iLfWsMtVCfuxiKW7rkLy836qcQac8Hzbi38DfJ8y7UbQ==</M>
<E>Aw==</E>
</RSAPK>
I am a little thin on this concept and expecting if you could guide me to a
library/documentation that I could utilize.
Thanks a lot for your help.
Regards,
Anurag
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20101228/2199b54d/attachment.html>
More information about the Python-list
mailing list