Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Digitally sign a XML File 1

Status
Not open for further replies.

florindaniel

Programmer
Dec 4, 2009
120
RO
Hello,

I have an USB token (made by Oberthur) and I need to know if there is some way to digitally sign, using this device, a XML file previously generated.

Thank you
Daniel
 
The documentation that came with that USB dongle should cover this, shouldn't it?
 
Absolutely none but now I see I was not specific enough:
The XML I'm talking about is generated in the program, then digitally signed programatically, zipped, encrypted and then sent via some Web service (where also I have some problems).

So the real question is: How to digitally sign a XML File from within a program ?.

Thank you
Daniel

 
How to digitally sign a XML File from within a program ?."

How about just reading the XML file in as a text file and then computing a checksum. Suggest using the SYS(2007) function.



Lion Crest Software Services
Anthony L. Testi
President
 
That was exactly what I did before writing this message and I've found the MSDN topic explaining it, in C++/C#/Java...

I was hoping for some help in using the System.Security.dll in Visual FoxPro.

Daniel
 
Very generally spoken such a usb token needs to install an additional cryptographic service provider via it's software to the PC, you then use the cryptographic windows API to sign or encrypt something.

VFP also has a sample in the solutions.app about adding encryption to an application, using windows crypto API.

As you say the token does not come with any software, there either is an automatic installation of hardware driver via plug & play you already forgot about or it's a dongle of some software internally using that token.

If you don't know the cryptographic servie provider, which your usb token adds to the system you can only sogn via normal software csps.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top