Well, xmlsec does not have direct support for the behaiviour you
want thus you'll have to write some code by yourself:
   1) prepare signature template but do not add X509Data element
   to KeyInfo element
   2) select privtate key and set it in the xmlSecDSigCtx
   3) sign the template
   4) add X509Data and X509SubjectName elements
   5) get the certificate and extract subject, set the subject in
   the X509SubjectName element manually

Unless you are signing KeyInfo element this should work.

Aleksey



_______________________________________________
xmlsec mailing list
[EMAIL PROTECTED]
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to