News  [SoftwareSite

Latest News
Older News
RSS Feed
 
Complete Projects
Useful Classes
Top Downloads
Message Board
AllAPI.net
 
Send Comments
Software License
Mentalis.org Buttons
Donate
 
Forums -> Security Library Forum
 
Private Key Files  
by Aiden Marriott [AidenMarriott at xhtlimited dot co dot uk]
posted on 2005/10/28

I am performance testing a HTTP authentication service that uses certificates stored on a smart card to validate a user.

In order to to recreate this signing in a script I can run repeatably, i am using the org.mentalis library to load a soft certificate (PFX file) into a store and pass the certificate to CryptSignMessage to sign my data (Using C# .Net project).

This works fine - with one problem, everytime I sign some data a private key file is created on my local machine in c:/Doc & settings/<user>/application data/microsoft/Crypto/RSA/S-1-5*. After a while of running this folder becomes very large and eventually crashes my machine.

I've read this can be done with the Windows API (if you can find the container name?), but i'm not really a programmer and am stuggling with this - does anyone know if there is a simple way to delete these files using the mentalis library or if not, any guidance on how else I could do it.

Many Thanks,

Aiden

 

Copyright © 2002-2007, The Mentalis.org Team. All rights reserved.
This site is located at http://www.mentalis.org/
Send comments to the webmaster.