--
You received this message because you are subscribed to the Google Groups "xmlseclibs" group.
To view this discussion on the web visit https://groups.google.com/d/msg/xmlseclibs/-/rVG-8nUSSz0J.
To post to this group, send email to xmlse...@googlegroups.com.
To unsubscribe from this group, send email to xmlseclibs+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/xmlseclibs?hl=en.
What part of your document are you trying to sign?
<f73:PoslovniProstorZahtjev xmlns:f73="http://www.apis-it.hr/fin/2012/types/f73" Id="poslovniProstorId">
Regards,
Goran Jurić
Hi all,
actually, the element has an Id="poslovniProstorId", but to sign it with xmlsec1 you have to use this syntax:
xmlsec1 --sign --output signed.xml --pkcs12 certAndPrivateKey.pfx --pwd somePass --id-attr:Id PoslovniProstorZahtjev source.xml
The elements name is
<f73:PoslovniProstorZahtjev xmlns:f73="http://www.apis-it.hr/fin/2012/types/f73" Id="poslovniProstorId">
I believe that I've put the syntax I used to sign the document with xmlsec1 at the top of that gist as a comment. File names are when I think about it a little cryptic so let me recap:
https://gist.github.com/4461385
- Correct output-xmlsec1.xmlďż˝ - signed with xmlsec1 from the special template with Signature element in it
- File passed to xmlsec1.xml - XML to bi signed with added Signature element so xmlsec1 knows what to do with it
- File to be signed.xml - original file that has to be signed
- Output-of-xmlseclibs-signing-the original file.xml - The result of signing with xmlseclibs
- Output-of-signing-the-xml-template-for-xmlsec1.xml - you can ignore this one, as you sed the <Signature> should not be in the document before signing the document
- Signing-with-xmlseclibs.php - PHP code used to sign the document with xmlseclibs
Regards,
Goran Juriďż˝
On Saturday, January 5, 2013 8:14:09 PM UTC+1, Berry T. wrote:
Dana subota, 5. sije�nja 2013. 18:26:33 UTC+1, korisnik Rob Richards napisao je:
What part of your document are you trying to sign?
ďż˝
It's the element with Id attribute "poslovniProstorId"
Here is the xmlsec1 command:
xmlsec1 --sign --output signed.xml --pkcs12 certAndPrivateKey.pfx --pwd somePass --id-attr:Id poslovniProstorId source.xml
--
You received this message because you are subscribed to the Google Groups "xmlseclibs" group.
To view this discussion on the web visit https://groups.google.com/d/msg/xmlseclibs/-/Hemsqk3CPW8J.