Signing PDF with Citizen Smart Card, reader and personal Pin

340 views
Skip to first unread message

maximili...@gmail.com

unread,
Oct 8, 2018, 8:00:42 PM10/8/18
to Pkcs11Interop
Hello!!
How are you Master?

I have many many Questions.
I want to Signing a PDF and Verify if PDF is Signed.

what is SerialToken for my Enviroment?
What is LabelToken for my Enviroment?
What i need to put in this strings

Its needing a Reader name or be detected alone

I have An application with APDU COMMANDS extracting data from this SmartCard but i need to implement PDF Signing

Maximiliano Cesán

unread,
Oct 9, 2018, 11:01:42 AM10/9/18
to Pkcs11Interop
I response myself.

Serial Token Label Token and CKAId can be getted from PkcsAdmin.
You need to donwload pkcsAdmin.exe and before to open. Load You Library. For Example my library is Gemalto gmlto.dll
After open this library, Build URI and PkcsAdmin show us all attributes

Jaroslav Imrich

unread,
Oct 9, 2018, 1:43:52 PM10/9/18
to Pkcs11Interop, maximili...@gmail.com
Hello Maximiliano,

I'm glad you found the answer by your own. Good job!

Please note that before you start using Pkcs11Interop it is highly recommended that you get familiar at least with "Chapter 2 - Scope", "Chapter 6 - General overview" and "Chapter 10 - Objects" of PKCS#11 v2.20 specification [0]. This required reading will surely give you basic understanding of important terms such as token serial or token label.

When you finish the reading you might also want to take a look at demo application for Pkcs11Interop.PDF library [1].


Kind Regards

Jaroslav Imrich


--
You received this message because you are subscribed to the Google Groups "Pkcs11Interop" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pkcs11intero...@googlegroups.com.
To post to this group, send email to pkcs11...@googlegroups.com.
Visit this group at https://groups.google.com/group/pkcs11interop.

Maximiliano Cesán

unread,
Oct 9, 2018, 2:32:47 PM10/9/18
to Pkcs11Interop
Hi !!, i have one question more, in this chapters i can find why ChkId is not the same in all cards?
How i can to knew the Token or Chka on all Cards Inserted?


El lunes, 8 de octubre de 2018, 21:00:42 (UTC-3), Maximiliano Cesán escribió:

Maximiliano Cesán

unread,
Oct 9, 2018, 5:17:38 PM10/9/18
to Pkcs11Interop
Im really Confused, i read Chapter 2 and 10, dont unerstand how i can get Dinamical CkaId. Im with the Rope in the head in my work hahaha


El lunes, 8 de octubre de 2018, 21:00:42 (UTC-3), Maximiliano Cesán escribió:

Maximiliano Cesán

unread,
Oct 9, 2018, 8:28:11 PM10/9/18
to Pkcs11Interop
Hello, My Solution,
I think Insert SerialToken and CkaId is for Security.

I was comment Code to skip this Validations.



//if (string.IsNullOrEmpty(ckaLabel) && ckaId == null)
            //    throw new ArgumentException("Private key label and/or id has to be specified");
//if (!string.IsNullOrEmpty(tokenSerial))
//    if (0 != String.Compare(tokenSerial, tokenInfo.SerialNumber, StringComparison.InvariantCultureIgnoreCase))
//        continue;

//if (!string.IsNullOrEmpty(tokenLabel))
//    if (0 != String.Compare(tokenLabel, tokenInfo.Label, StringComparison.InvariantCultureIgnoreCase))
//        continue;

With this Code Commented i Signing a PDF 100%




El lunes, 8 de octubre de 2018, 21:00:42 (UTC-3), Maximiliano Cesán escribió:
Reply all
Reply to author
Forward
0 new messages