Hi,

Here is what i did:-
1.open the pdf document.
2.Insert smart card token into USB drive.
3.Read certificate from store(x509 store)
4.Smart card will be on top of list so select zero index in
store.certificates
5.convert this certificate to byte[] or use

X509Certificate2 cert = store.Certificates[certsListBox.SelectedIndex];

byte[] bytes = cert.Export(X509ContentType.Pfx,this.passwordBox.Text);
6.if using later one,then exception will generate "Key not valid for
specified state".
7.If using former,then when you make pkcs12 store object using stream(using
byte[]),then exception will come "Could n't convert from des seq to des
integer."

Hope i cleared you...
Can you please elabroate x509includeoption because i haven't used it.
-- 
Thanks and Regards,
Ashish Dhingra,
Software Engineer,
M-09467783146
God first everything else next
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to