Adding timestamp with smartcard/etoken certificate

View: New views
1 Messages — Rating Filter:   Alert me  

Adding timestamp with smartcard/etoken certificate

by dziedrius :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
there's sample how to add timestamp using certificate in file:
http://itextpdf.sourceforge.net/howtosign.html#signtsocspcs

but i can't find sample, how to add timestamp using etoken (smartcard should be pretty much the same).

the part, that i don't know how to change is:

Pkcs12Store ks = new Pkcs12Store(fs, CERT_PASSW.ToCharArray());
ICipherParameters pk = ks.GetKey(alias).Key;

because in Pkcs12Store constructor they are using parameter to certificate file stream, i have my certificate as X509Certificate2 object.

If anyone done this and could help, i would be very thankfull.