Page 1 of 1

sign an XML using a .p12 certificate

Posted: Mon Oct 23, 2023 7:57 am
by digitsoft
Does anyone know how to sign an XML using a .p12 certificate?

Re: sign an XML using a .p12 certificate

Posted: Mon Oct 23, 2023 8:02 am
by Tom
Chilkat should do the job. ActiveX, easy to use, excellent samples, royalty free.

https://www.chilkatsoft.com/refdoc/xChi ... enRef.html

Re: sign an XML using a .p12 certificate

Posted: Tue Oct 24, 2023 6:33 am
by k-insis
xmlsec a opensource util, can be used to script things on workstation or server side, no install required, widely used on unix and linux, binaries for windows are available, xml has to provide blank signature fields in file though

xmlsec sign --pkcs12 certfile.p12 --output NameOfSignedxml.xml --pwd supersecretpassDUH! --id-attr:Id xmlIdTobeSigned InputFile.xml

https://sgros.blogspot.com/2013/01/sign ... lsec1.html


digitsoft wrote: Mon Oct 23, 2023 7:57 am Does anyone know how to sign an XML using a .p12 certificate?

Re: sign an XML using a .p12 certificate

Posted: Wed Oct 25, 2023 5:11 am
by rdonnay
Chilkat should do the job.
Chilkat gets my vote for the most valuable suite of ActiveX tools.

Re: sign an XML using a .p12 certificate

Posted: Wed Oct 25, 2023 5:48 am
by Tom
Chilkat gets my vote for the most valuable suite of ActiveX tools.
It gets my vote too.

Re: sign an XML using a .p12 certificate

Posted: Wed Oct 25, 2023 8:06 am
by skiman
No doubt about that. Even the free classes are worth to have. The complete suite is just exellent and the chilkattools site is an extra addition to use for free.

Re: sign an XML using a .p12 certificate

Posted: Wed Oct 25, 2023 8:42 am
by reganc
I'll second (or third or whatever) all the comments about the Chilkat library. Absolutely invaluable.

Re: sign an XML using a .p12 certificate

Posted: Wed Oct 25, 2023 8:52 am
by digitsoft
I am using Chilkat the library for 30 days
and I have some error that I can't locate

I hope you give me an idea of ​​what I'm doing wrong.

Re: sign an XML using a .p12 certificate

Posted: Wed Oct 25, 2023 11:21 pm
by k-insis
You are probably not specifying node which has to be signed.
Watch for case sensitivity.
digitsoft wrote: Wed Oct 25, 2023 8:52 am I am using Chilkat the library for 30 days
and I have some error that I can't locate

I hope you give me an idea of ​​what I'm doing wrong.