Crypt::HSM::Provider - A PKCS11 provider
version 0.016
my $hsm = Crypt::HSM->load('/usr/lib/pkcs11/libsofthsm2.so'); my ($slot) = $hsm->slots; my $session = $slot->open_session; $session->login('user', '1234');
This module interfaces with any PKCS11 interface to use its cryptography.
This lists the slots of this interface as Crypt::HSM::Slot. If $available is true only slots with a token available will be listed.
$available
This returns a Crypt::HSM::Slot for the slot with the given identifier.
This returns a hash with information about the HSM.
Leon Timmermans <leont@cpan.org>
This software is copyright (c) 2023 by Leon Timmermans.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Crypt::HSM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypt::HSM
CPAN shell
perl -MCPAN -e shell install Crypt::HSM
For more information on module installation, please visit the detailed CPAN module installation guide.