hi all. unable to use opensc-pkcs11.so as a PHP library #2946
Replies: 7 comments 5 replies
-
What are you trying to achieve? How do you load opensc into php? PHP5 is EOL for ages anyway: |
Beta Was this translation helpful? Give feedback.
-
The opensc pkcs#11 module will definitely not be loaded directly into php.. but it seems that there is a way: |
Beta Was this translation helpful? Give feedback.
-
Try changing the path to softhsm to the path to the opensc library.
example php file:
then run:
|
Beta Was this translation helpful? Give feedback.
-
First you have to compile the pkcs11 module for php, here is a complete procedure for linux:
if everything went correctly, your newly compiled module will be available:
Now you can run the test I mentioned above. |
Beta Was this translation helpful? Give feedback.
-
Hi, can opensc be used with javascript?? have a example?? thanks |
Beta Was this translation helpful? Give feedback.
-
when loading PHP 5.6 I get this message:
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) '/usr/lib/x86_64-linux-gnu/opensc-pkcs11.so'
opensc-tool is ok and opensc-tool -a outputs this:
OpenSC 0.23.0 [gcc 13.2.0]
Enabled features: locking zlib readline openssl pcsc(libpcsclite.so.1)
My browser (firefox) has it's pkcs11 as it's pkcs11 (device manager) end recognizes my smart card correctly
any help will be appreciated
Beta Was this translation helpful? Give feedback.
All reactions