Skip to main content
Participating Frequently
January 7, 2008
Question

XML Signature

  • January 7, 2008
  • 4 replies
  • 1054 views
I need to add and xml signature using an SSL certificate for a project requirement. Does anyone have an example of the code to make this happen. I have searched high and low and found very little on the topic unless I want to use .net.

Any help would be greatly appreciated.
This topic has been closed for replies.

4 replies

beboylandAuthor
Participating Frequently
January 8, 2008
Signing an XML document is the term that is used, It looks like examples provided is using Microsofts CAPICOM dll and C# as the language.

Thanks for you help
Participating Frequently
January 8, 2008
When you say "XML signature" do you mean "client certificate"? Or it is something different?
Inspiring
January 8, 2008
I have not read the entire series, but it seems as if much of the work is a one time setup: installing the jars, loading the cert, creating the java class to be called from CF, etcetera. So while I would not call this easy, perhaps it appears more complicated than it is? Hopefully someone else who has done this before will chime in.
beboylandAuthor
Participating Frequently
January 8, 2008
Yes this is what I believe to be the case also, I was hoping someone might be able to help get us to the starting gate to get going.
Participating Frequently
January 8, 2008
CF8 supports client certificates natively in CFHTTP. For earlier versions under Windows use this: http://www.cftagstore.com/tags/cfxhttp5.cfm

It has nothing to do with XML, although. Any HTTP request may include a client certificate for authentication.

beboylandAuthor
Participating Frequently
January 8, 2008
Any help?
Inspiring
January 8, 2008
I have not done this personally, but to get the ball rolling here ... You might be interested in this site. Take a look around. See if any of the entries could be of use to you. Have you looked for java examples as well? Those should be easier to incorporate into CF.
beboylandAuthor
Participating Frequently
January 8, 2008
Yes I have been looking into this for a couple of days. It seems like there should be a class we could call from Cold Fusion to add the signature. I had alady looked at that example. It is pretty complicated. I was hoping someone had already been through the trials of this and could give me some insights.