Questions tagged [pkcs11interop]

Pkcs11Interop is managed .NET wrapper for unmanaged PKCS#11 libraries that provide access to the cryptographic hardware

Pkcs11Interop is managed library written in C# that brings PKCS#11 API to the .NET environment.

It loads unmanaged PKCS#11 library provided by the cryptographic device vendor and makes its functions accessible to .NET application.

The library is open source and hosted on GitHub.

104 questions
0
votes
1 answer

Will the Pkcs11Interop Cryptoki application, which is registered as HSM client to more than one HSMs) detects and sends requests to active HSM

We are using Pkcs11Interop API in our application to sign digest using the private keys stored in Thales nShield HSM. To cater the DR Scenarios, our digital signatures application hosted server is enrolled as HSM client to both Primary Thales…
Kumar
  • 63
  • 1
  • 10
0
votes
1 answer

Pkcs11Exception: Method C_GetSessionInfo returned CKR_CRYPTOKI_NOT_INITIALIZED

We are using Thales nShield HSM for storing Private keys and the corresponding public key is stored in the Certificate store. We have written the logic as below: Search for a valid slot and open a session for that on the first call and it can…
Kumar
  • 63
  • 1
  • 10
0
votes
0 answers

I can't sign xml file with HSM device

I'm trying to sign a xml file using PKCS11 library but I got some errors when I'm trying to sign. Here is my code and I pointed exception line. ComputeSignature method returns me exception and I'm confused. ... ObjectHandle publicKey…
TEngineer
  • 95
  • 1
  • 18
0
votes
1 answer

Pkcs11 - How to add signature to xml file?

I've a problem that occurs when getting certificate and putting to xml file. Should I use private key for signing? I see only public key in certificate. There is no private key in my certificate. byte[] ckaIdd =…
TEngineer
  • 95
  • 1
  • 18
0
votes
1 answer

Linker command failed with exit code 1 (use -v for more details) Xamarin.Mac

I created a Xamarin.Mac App, then add nuget package Pkcs11Interop (it supports mac). And try to tun project but gives an error messages: Build Log: MMP : warning MM2006: Native library 'libdl' was referenced but could not be found. …
Nikita Goncharuk
  • 795
  • 1
  • 8
  • 23
0
votes
1 answer

How use Pkcs11interop Xamarin.Mac

i want to create a Xamarin.Mac app to read data from eID card. Where i can find an information about pkcs11interop + Xamarin or where i can find an examples. Or, how can i load a iOS library: String path = "beid_ff_pkcs11.dll"; …
Nikita Goncharuk
  • 795
  • 1
  • 8
  • 23
0
votes
1 answer

Is there any way to obtain pkcs#11 library path from windows csp

Earlier i was using certenroll to list csp and generate CSR and now i want use pkcs11Interop to do the same, but to initialize the pkcs11Interop we must provide the path of pkcs#11 library is there any way to get that path for available csp or…
Prashanth
  • 507
  • 5
  • 25
0
votes
0 answers

PKCS11 - SHA1HMAC yields a different SHA1HMAC result

I am following the below steps to compute the HMAC using SHA1 algorithm using two different API and both the outputs are not matching. 1) I first compute HMAC for a given data and key using SHA1 algorithm through BouncyCastle API. 2) We compute…
Venkat
  • 19
  • 2
0
votes
2 answers

Unable to read latest changes to the ProgramData

I have a program that executes an executable using Process.Start(). The executable I invoke is a third party program that updates a folder in ProgramData. Once the folder in the ProgramData gets updated the next set of lines in my program try to…
Aashish Upadhyay
  • 840
  • 1
  • 7
  • 22
0
votes
1 answer

PDF Signing With Pkcs11Interop

I try to use Pkcs11Interop library for our institutional project. But problem is, when i try to get value from token card, "attempted to read or write protected memory. This is often an indication that other memory is corrupt" error is getting from…
ebruszl
  • 469
  • 4
  • 11
  • 27
-1
votes
1 answer

Mapping problem of PKCS11 EC public key to BC PKCS10 object

I have created EC key pair in HSM using PKCS11Interop library, and i need to create PKCS10 Certificate request using this keys. For generation of PKCS10 I use BC, and in this situation i need to set public key as a parameter for PKCS10 request. In…
Uzeyir
  • 1
  • 1
-1
votes
1 answer

How to convert ObjectHandle from Pkcs11Interop to X509 Certificate or Pem format?

How to convert Public key from Pkcs11Interop to X509 certificate or pem format
Noppadol
  • 11
  • 3
-1
votes
1 answer

C_GenerateKeyPair returned CKR_USER_NOT_LOGGED_IN

using (Session session = slot.OpenSession(SessionType.ReadWrite)) { session.Login(CKU.CKU_SO, "pin"); List publicKeyAttributes = new List(); publicKeyAttributes.Add(new…
TEngineer
  • 95
  • 1
  • 18
-2
votes
0 answers

How to extract Bitcoin Private Key from PKCS1 private key file?

I have a BTC wallet backup copy in PKCS1 private key format. Sadly, my friend created the wallet for me and I didn't take part in creating it. And I don't know on what platform was it created.To sum up, I have an address of my BTC wallet and this…
Alex
  • 1
  • 1
1 2 3 4 5 6
7