[xmlsec] signature and X509SubjectName
Aleksey Sanin
aleksey@aleksey.com
Fri, 27 Jun 2003 08:37:48 -0700
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