SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

BotDetect - Real-Time Bot Detection API
 
 

MAN page from OpenSuSE perl-OpenXPKI-Core-0.9.1389-6.362.CS.i586.rpm

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

Section: User Contributed Perl Documentation (3)
Updated: 2008-09-30
Index 

Name

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

Description

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

Configuration

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 configurationmust be the idenitifier of the key on the smartcard an not a real filename.A typical OpenSC example for a name is id_45. 

Functions

 

login

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

Examples: $engine->login (); 

get_engine

returns the used OpenSSL engine pkcs11. 

get_engine_section

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

get_keyform

returns ``engine'' because otherwise the use of this module makes no sense.


 

Index

Name
Description
Configuration
Functions
login
get_engine
get_engine_section
get_keyform

This document was created byman2html,using the manual pages.
 
ICM Bot detect detector