Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

c# - Where can i find the PKCS11 unmanaged library for the cherry SmartTerminal ST-1144

I want to use the cherry SmartTerminal ST-1144 in order to finally sign pdf documents with certificates from a smartcard. I do use the .net PKCS11Interop. In the following code i need to provide the unmanaged PKCS11 library for the Cherry SmartTerminal ST-1144:

            using (IPkcs11Library pkcs11Library = factories.Pkcs11LibraryFactory.LoadPkcs11Library(factories, pkcs11LibraryPath, AppType.MultiThreaded))

My problem is that i don't know where i can find this unmanaged library. I've installed the provided software from cherry, but none of the listed dll's could be loaded. enter image description here The error is always

Net.Pkcs11Interop.Common.UnmanagedException: 'Unable to load library. Error code: 0x0000007E. Error detail: The specified module could not be found'

I guess those are not compatible libraries. I also tried to contact the support from cherry but had no success so far.

Any idea

  • If this cherry smartterminal is compatible with IPkcs11Library?
  • What is the name of the dll which can be used as pkcs11LibraryPath?

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

PKCS#11 library is not driver for card reader (in your case Cherry SmartTerminal ST-1144). PKCS#11 library is driver for the card. So I highly doubt such library is installed as a part of package provided by Cherry. It should be installed as part of software you got with your smartcard.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...