Crypt::Cryptoki - Perl extension for PKCS#11
STATUS
This is project is still in a very early development stage.
IT IS NOT READY FOR PRODUCTION!
"RSA Security Inc. Public-Key Cryptography Standards (PKCS)"
Current stable version: 2.20
I'm looking forward for version 2.40, which should support TLS 1.2.
INSTALLATION
To install this module type the following:
$ git clone https://github.com/mlarue/p5-Crypt-Cryptoki.git
$ cd p5-Crypt-Cryptoki
p5-Crypt-Cryptoki$ perl Build.PL
p5-Crypt-Cryptoki$ ./Build
p5-Crypt-Cryptoki$ ./Build test
p5-Crypt-Cryptoki$ ./Build install
Software HSM
You can test your application with SoftHSM from the OpenDNSSEC Project.
Configuration
$ mkdir ~/.softhsm
$ echo "0:$HOME/.softhsm/slot0.db" >> ~/.softhsm/softhsm.conf
$ echo "export SOFTHSM_CONF=~/.softhsm/softhsm.conf" >> ~/.bashrc
$ source ~/.bashrc
Initialization
$ softhsm --init-token --slot 0 --pin 1234 --so-pin 1234 --label testslot
DOCUMENTATION
See
$ perldoc Crypt::Cryptoki
LINKS
Stable Version 2.20 ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs-11v2-20.pdf
PKCS#11 oasis https://www.oasis-open.org/committees/pkcs11
Public Review Draft 01, 2.40 http://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.40/pkcs11-curr-v2.40.pdf
COPYRIGHT AND LICENCE
GNU General Public Licence (GPL)
Copyright (C) 2014 by Markus Lauer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.18.2 or, at your option, any later version of Perl 5 you may have available.