
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)
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-2013