GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
OpenXPKI::Crypto::Backend::OpenSSL::Engine::PKCS11(3) User Contributed Perl Documentation OpenXPKI::Crypto::Backend::OpenSSL::Engine::PKCS11(3)

OpenXPKI::Crypto::Backend::OpenSSL::Engine::PKCS11

This class implements an interface for OpenSC's PKCS#11 engine.

You must configure an ENGINE_SECTION which looks like this:

 --snip--
 pkcs11 = pkcs11_section

 [pkcs11_section]
 engine_id = pkcs11
 dynamic_path = /usr/lib/engines/engine_pkcs11.so
 MODULE_PATH = /usr/lib/opensc-pkcs11.so
 init = 0
 --snip--

Please note that the key file which must be specified in the configuration must be the idenitifier of the key on the smartcard an not a real filename. A typical OpenSC example for a name is id_45.

tries to set the passphrase for the used token. Actually we cannot check the passphrase without risking to lock the smartcard or whatever token is used. If the passhrase is missing or shorter than 4 characters then an exception is thrown. There is no parameter because we get the passphrase from the OpenXPKI::Crypto::Secret object.

Examples: $engine->login ();

returns the used OpenSSL engine pkcs11.

returns the OpenSSL engine section from the configuration. Please note that this configuration must include a PIN line where the value of the PIN parameter is __PIN__. This is necessary because this is the only way how we can supply the PIN to the PKCS#11 library.

returns "engine" because otherwise the use of this module makes no sense.
2022-05-14 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.