Authen::Credential::x509 - abstraction of an X.509 credential
This helper module for Authen::Credential implements an X.509 credential, see http://en.wikipedia.org/wiki/X.509.
It supports the following attributes:
the path of the file holding the certificate
the path of the file holding the private key
the pass-phrase protecting the private key (optional)
the path of the directory containing trusted certificates (optional)
the path of the file that contains the trusted certificate (optional)
It supports the following targets for the prepare() method:
it returns a reference to a hash containing the suitable options for IO::Socket::SSL
use Authen::Credential; use IO::Socket::SSL; # get the credential from somewhere $cred = Authen::Credential->parse(...); # use the prepare() method to get ready-to-use data $sslopts = $cred->prepare("IO::Socket::SSL"); $socket = IO::Socket::SSL->new( PeerHost => "web.acme.com", PeerPort => "https", %{ $sslopts }, );
Authen::Credential, IO::Socket::SSL, http://en.wikipedia.org/wiki/X.509.
Lionel Cons http://cern.ch/lionel.cons
Copyright (C) CERN 2011-2015
To install Authen::Credential, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Authen::Credential
CPAN shell
perl -MCPAN -e shell install Authen::Credential
For more information on module installation, please visit the detailed CPAN module installation guide.