Import PFX into smartcard

Feb 6 2008 10:52 AM

Hi, I'm using C# in the way is detailed in http://download.microsoft.com/download/7/a/a/7aa097bf-8085-48d1-98f4-f1242ddc1754/pkcs12.exe just to load pfx file into memory:

PfxOpen pfx = new PfxOpen();

if (!pfx.LoadPfx(pfxfilename, ref pswd)) {

   Console.WriteLine("Error cargando pfx");

   return;}

After that, i'm going mad because i have no idea of how to continue. I have tried to get a context with

CryptAcquireContext but it works only with de default provider (that is Microsoft).

The provider i have to use is

SafeSign Standard Cryptographic Service Provider

Does anybody knows how this can be done?