Questions tagged [opensc]

OpenSC provides a set of libraries and utilities to work with smart cards.

OpenSC provides a set of libraries and utilities to work with smart cards. Its main focus is on cards that support cryptographic operations, and facilitate their use in security applications such as authentication, mail encryption and digital signatures. OpenSC implements the PKCS#11 API so applications supporting this API (such as Mozilla Firefox and Thunderbird) can use it. On the card OpenSC implements the PKCS#15 standard and aims to be compatible with every software/card that does so, too.

More info on OpenSC project wiki.

55 questions
0
votes
0 answers

How to cast "byte[] publicKey" to "Data Object" (to use ObjectHandle)

I'm extracting the Public key for encryption from the sender's Certificate as byte[] array JObject o = JObject.Parse(reply); string certResponse = o.GetValue("certificate").Value(); byte[] certByteArray =…
Kamran Khan
  • 23
  • 1
  • 4
0
votes
0 answers

Creating a self-signed certificate from the keypair on the smartcard

I generated a keypair on the smartcard using pkcs11-tool from OpenSC and the custom PKCS#11 library. This PKCS#11 library is my test object. Now I want to create a certificate out of this keypair. So far I found the way to create certificate when I…
0
votes
0 answers

read ssl private key from smartcard with c#

I have a smartcard with a card reader and I decide to implement a client certificate in the latter. The private key being stored in the card and the public key is stored in the server. The application scenario is something like this: application…
developer
  • 4,744
  • 7
  • 40
  • 55
0
votes
2 answers

Linking error for a C application using PKCS#11 API

I am trying to compile an example basic code that performs PKCS#11 initialization only but get following error; gcc pkcs11_example1.c -o pk -L /usr/lib64/pkcs11/opensc-pkcs11.so /tmp/cc8Dl0HE.o: In function…
neutrino
  • 17
  • 10
0
votes
1 answer

opensc 32 bit for windows does it create opensc-pkcs11.dll file?

OpenSC 32 bit for windows installation does not create file opensc-pkcs11.dll in c:\windows\system32, but the installation document says it does, is this a bug? or am I missing anything? I tried download different versions, none of them created…
user884424
  • 573
  • 1
  • 12
  • 33
0
votes
2 answers

Virtual Smart Card PKCS#11 compliant

I would like to run some tests on a virtual smart card. I would like to know if there exists a virtual smart card PKCS#11 compliant and supported by OpenSC. I'm running on Linux. Thank you in advance for your valuable help. Best, BEE
BEE
  • 21
  • 1
0
votes
1 answer

opensc-pkcs11 not getting any token

I am writing a sample program using opensc-pkcs11.so in redhat linux. This is for pure software implementation of AES encryption/decryption. I am not using for any card. My program intilizes the cryptoki successfully but giving CKR_TOKEN_NOT_PRESENT…
saby
  • 15
  • 2
  • 5
0
votes
1 answer

Linking error with opensc-pkcs

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…
saby
  • 15
  • 2
  • 5
-1
votes
1 answer

OpenSC on Mac OS X Yosemite

I built OpenSC for Mac and installed it on Mavericks and Yosemite. After the installation Opensc.tokend is added in /Library/Security/tokend directory. On Mavericks it works fine, in Chrome, Firefox, Safari and I can use its tools from terminal too.…
varMari
  • 1
  • 1
-1
votes
2 answers

Unable to compile a c application that reads smartcard

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):…
1 2 3
4