J
Joe Van Meer
HI there,
I have a .NET 2.0 DLL that I use to digitally sign an X509Certificate - this
DLL is COM Interop enabled and is being called via a classic ASP page.
My main method in the DLL takes in an XML string and digitally encrypts it
using values form an X509Certificate on the server, and sends it back
(currently xmlDoc.OuterXML.ToString() - a method (outerxml) I am now finding
out strips out any whitespaces found in the elements)
I call this method and place this resulting object into an XMLDOM object and
dump this value into a hidden form field for a POST action - obj.xml
The issue is that I am trying to preserve the line breaks in the
X509Certificate element inside the signature, however it all comes back as
one line when I view it in view Source of my browser, and doesn't not
complete my SSO action that is expecting the line breaks...
My question is this, is there a reliable way to preserve this whitespace, or
another route I could take to get the xml in it's original format? Is
there a way to identfy these breaks within the element b4 I send it back and
do some sort of replace action?
cheers & thanks, Joe
I have a .NET 2.0 DLL that I use to digitally sign an X509Certificate - this
DLL is COM Interop enabled and is being called via a classic ASP page.
My main method in the DLL takes in an XML string and digitally encrypts it
using values form an X509Certificate on the server, and sends it back
(currently xmlDoc.OuterXML.ToString() - a method (outerxml) I am now finding
out strips out any whitespaces found in the elements)
I call this method and place this resulting object into an XMLDOM object and
dump this value into a hidden form field for a POST action - obj.xml
The issue is that I am trying to preserve the line breaks in the
X509Certificate element inside the signature, however it all comes back as
one line when I view it in view Source of my browser, and doesn't not
complete my SSO action that is expecting the line breaks...
My question is this, is there a reliable way to preserve this whitespace, or
another route I could take to get the xml in it's original format? Is
there a way to identfy these breaks within the element b4 I send it back and
do some sort of replace action?
cheers & thanks, Joe