[xmlsec] signature and X509SubjectName
Aleksey Sanin
aleksey at aleksey.com
Fri Jun 27 08:37:48 PDT 2003
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
More information about the xmlsec
mailing list