Claes Jakobsson > Crypt-NSS > Crypt::NSS::PKCS11

Download:
Crypt-NSS-0.04.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Crypt::NSS::PKCS11 - Functions needed for communicating with PKCS#11 cryptographic modules

DESCRIPTION ^

PKCS#11 is a API for interfacing with cryptographic modules such as software tokens, smart cards. This module provides functions for obtaining certificates, keys, passwords etc.

INTERFACE ^

GLOBAL VARIABLES

$DefaultPinArg

The default PKCS#11 pin arg that can be set on Net::NSS::SSL instances. This is useful when you want to set a PKCS#11 pin arg on sockets where you can't control directly what's set to new. This is mostly used when you use NSS with LWP.

CLASS METHODS

set_password_hook ( $hook : code | string )

Sets the function to call when a PKCS#11 module needs a password. The argument CALLBACK must be either a code reference or a fully qualified function name.

find_cert_by_nickname ( $nickname : string, $arg : scalar ) : Crypt::NSS::Certificate

Finds a certificate by nickname. The argument $arg is passed to the hook set by set_password_hook.

find_key_by_any_cert ( $certificate : Crypt::NSS::Certificate, $arg : scalar ) : Crypt::NSS::PrivateKey

Finds a private key for a certificate. The argument $arg is passed to the hook set by set_password_hook.

syntax highlighting: