sign an XML using a .p12 certificate

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

sign an XML using a .p12 certificate

#1 Post by digitsoft »

Does anyone know how to sign an XML using a .p12 certificate?
Nolberto Paulino
Regards

User avatar
Tom
Posts: 1171
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: sign an XML using a .p12 certificate

#2 Post by Tom »

Chilkat should do the job. ActiveX, easy to use, excellent samples, royalty free.

https://www.chilkatsoft.com/refdoc/xChi ... enRef.html
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

k-insis
Posts: 100
Joined: Fri Jan 28, 2011 4:07 am

Re: sign an XML using a .p12 certificate

#3 Post 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?

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: sign an XML using a .p12 certificate

#4 Post by rdonnay »

Chilkat should do the job.
Chilkat gets my vote for the most valuable suite of ActiveX tools.
The eXpress train is coming - and it has more cars.

User avatar
Tom
Posts: 1171
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: sign an XML using a .p12 certificate

#5 Post by Tom »

Chilkat gets my vote for the most valuable suite of ActiveX tools.
It gets my vote too.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

skiman
Posts: 1185
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: sign an XML using a .p12 certificate

#6 Post 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.
Best regards,

Chris.
www.aboservice.be

reganc
Posts: 257
Joined: Thu Jan 28, 2010 3:08 am
Location: Hersham, Surrey, UK
Contact:

Re: sign an XML using a .p12 certificate

#7 Post by reganc »

I'll second (or third or whatever) all the comments about the Chilkat library. Absolutely invaluable.
Regan Cawkwell
Real Business Applications Ltd
http://www.rbauk.com

User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: sign an XML using a .p12 certificate

#8 Post 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.
Attachments
Imagen.jpg
Imagen.jpg (101.74 KiB) Viewed 2256 times
Nolberto Paulino
Regards

k-insis
Posts: 100
Joined: Fri Jan 28, 2011 4:07 am

Re: sign an XML using a .p12 certificate

#9 Post 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.

Post Reply