<div dir="ltr">Hi,<div><br></div><div>I was including the missing functions to handle X509 information when signing XML files to the python-xmlsec wrapper library and noted that when using the subject name I got additional empty nodes to X509Data node.</div><div><br></div><div>This is the <span style="line-height:1.5">X509Data </span><span style="line-height:1.5">node right before signing the template.</span></div><div><br></div><div><div><font face="monospace"><X509Data></font></div><div><font face="monospace"><X509SubjectName/></font></div><div><font face="monospace"><X509Certificate/></font></div><div><font face="monospace"></X509Data></font></div></div><div><br></div><div>And this is the signed node:</div><div><br></div><div><div><font face="monospace"><X509Data></font></div><div><font face="monospace"><br></font></div><div><div><font face="monospace"><X509Certificate>MIIE3zC...<span style="line-height:1.5"></X509Certificate></span></font></div><div><font face="monospace"><X509SubjectName>emailAddress=<a href="mailto:xmlsec@aleksey.com">xmlsec@aleksey.com</a>,CN=Aleksey Sanin,OU=Examples RSA Certificate,O=XML Security Library (<a href="http://www.aleksey.com/xmlsec">http://www.aleksey.com/xmlsec</a>),ST=California,C=US</X509SubjectName></font></div></div><div><font face="monospace"></X509Data></font></div></div><div><br></div><div>I put a sample for this (sign4) in my fork at <a href="https://github.com/sergio-garcia/xmlsec">https://github.com/sergio-garcia/xmlsec</a>, but I was unable to determine what is causing this additional empty text nodes.</div><div><br></div><div>I used Ubuntu 14.04 with the supplied libxmlsec1-dev on my tests.</div><div><br></div><div>There is something that I'm probably missing?</div><div><br></div><div>Thanks,</div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><img style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: small; line-height: normal;" src="https://s3-sa-east-1.amazonaws.com/email-ginx/sergio.png"></div></div>