Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - RE: msxml5/6 and xmldsig msxml5/6 and xmldsigTo: NULL Date: 11/1/2005 12:09:00 PM I am trying to create a client side digital signature in IE using JScript. My current JScript code works quite well when run from cscript, wscript, the Eclipse IDE browser, and Netscape 8.04 using the IE engine. Using the code from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/19465f9b-b181-406c-bbae-111d0733356d.asp as a basis for my code. The sign() method states: You cannot sign any data in a non-trusted context, such as a script embedded in an HTML page. Doing so will result in an error. (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/309123e5-c5be-4435-8ef3-19802462bf7e.asp) The error is simply "Access is denied", very helpful. Essentially, what is happenning is the code fails when the private key access is attempted in IE to actually perform the signing, but it works in every other context. I have tried placing the web site in the trusted sites zone so that the code supposedly runs in a "trusted context", I have tried with http and https, I have tried using a '.hta' extension, I even set the GUIDs for MSXML5 and MSXML6 in the registry under HKLM/Software/Microsoft/Ole/AppCompat/ActivationSecurityCheckExemptionList (the GUIDs for CLSID_MXDigitalSignature50/CLSID_MXDigitalSignature60). Nothing seems to fix the key access problem. I suspect the sign() method itself is checking to see if the application context includes iexplorer.exe and simply fails if it finds that particular string in the context prior to attempting to access the private key. Is there some way to work around this? I am a little concerned that something this simple works in Netscape 8 and does not work in MS IE, especially when all of this is happenning using ActiveX objects. I would also like to know if there is some tentative date set for A redistributable that will include MXDigitalSignature. I know that 5.0 is NOT redistributable but I really need a redistributable that has the XMLDSig functionality. Any guidance is VERY MUCH appreciated. V/R, gjb | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
