opensc

Using a Java Card with Bitlocker

一世执手 提交于 2021-02-08 07:26:21
问题 I want to use J2A040 JCOP 21-36k java cards to implement a smart card driven bitlocker-to-go solution using gidsapplet and OpenSC but when attempting to put a certificate on the card (certreq -new) I have not been able to get past the "The smart card is not fully personalized for use" error from windows. This is the dump contents with gids-tool: Dumping Files: Found 5 entries in the masterfile Directory: mscp FileIdentifier: 0xa000 File: \cardid FileIdentifier: 0xa012 DataObjectIdentifier:

Exception “CKR_FUNCTION_NOT_SUPPORTED”, PKCS11Interop with OpenSC

让人想犯罪 __ 提交于 2019-12-24 07:10:20
问题 I am trying to use PKCS11Interop Library with latest version (0.16) of OpenSC (opensc-pkcs11.dll). I have tried USB tokens from three vendors which are Yubico 4, NitroKey Pro/Start, Fetian ePass2003 but unable to use most of the functions from PKCS11Interop Library. I receive Net.Pkcs11Interop.Common.Pkcs11Exception: 'Method C_SignRecoverInit returned CKR_FUNCTION_NOT_SUPPORTED' for most of functions provided by the library. The functions that throw this exception are C_GetOperationState, C

Unable to compile a c application that reads smartcard

好久不见. 提交于 2019-12-13 07:52:30
问题 I am trying to compile an example c application that is using pkcs#11 to finds all the private keys on the token, and print their label and id, but getting following errors /tmp/ccAqQ7UI.o: In function initialize': pkcs11_example1.c:(.text+0x8e5): undefined reference to C_Initialize' /tmp/ccAqQ7UI.o: In function `get_slot': The example is taken from here compilling by using following command; `gcc pkcs11_example1.c -o slots -L /usr/lib/opensc-pkcs11.so` I am not sure which library i should

Linking error with opensc-pkcs

我的未来我决定 提交于 2019-12-04 05:53:06
问题 I am trying to use opensc-pkcs11.so which I have built on Redhat linux 5. However, when I try to use in a sample program it is giving a linking error: main.cpp:(.text+0x265): undefined reference to `C_Initialize' The sample code snippet is as follows: int main() { CK_RV l_rv = 0; l_rv = C_Initialize(NULL_PTR); //other staffs ... } If I see the nm output of opensc-pkcs11.so it is showing: -bash-3.2$ nm opensc-pkcs11.so |grep C_Initialize 0000000000008c70 t C_Initialize What is the meaning of

Linking error with opensc-pkcs

ぐ巨炮叔叔 提交于 2019-12-02 12:28:55
I am trying to use opensc-pkcs11.so which I have built on Redhat linux 5. However, when I try to use in a sample program it is giving a linking error: main.cpp:(.text+0x265): undefined reference to `C_Initialize' The sample code snippet is as follows: int main() { CK_RV l_rv = 0; l_rv = C_Initialize(NULL_PTR); //other staffs ... } If I see the nm output of opensc-pkcs11.so it is showing: -bash-3.2$ nm opensc-pkcs11.so |grep C_Initialize 0000000000008c70 t C_Initialize What is the meaning of 't'? I see it is not 'T'. But is also not 'U'. Can anybody suggest what is happening? Thanks in advance.