1Authen::Credential::x50U9s(e3r)Contributed Perl DocumentAauttihoenn::Credential::x509(3)
2
3
4
6 Authen::Credential::x509 - abstraction of an X.509 credential
7
9 This helper module for Authen::Credential implements an X.509
10 credential, see <http://en.wikipedia.org/wiki/X.509>.
11
12 It supports the following attributes:
13
14 cert
15 the path of the file holding the certificate
16
17 key the path of the file holding the private key
18
19 pass
20 the pass-phrase protecting the private key (optional)
21
22 ca the path of the directory containing trusted certificates
23 (optional)
24
25 ca_file
26 the path of the file that contains the trusted certificate
27 (optional)
28
29 It supports the following targets for the prepare() method:
30
31 IO::Socket::SSL
32 it returns a reference to a hash containing the suitable options
33 for IO::Socket::SSL
34
36 use Authen::Credential;
37 use IO::Socket::SSL;
38
39 # get the credential from somewhere
40 $cred = Authen::Credential->parse(...);
41
42 # use the prepare() method to get ready-to-use data
43 $sslopts = $cred->prepare("IO::Socket::SSL");
44 $socket = IO::Socket::SSL->new(
45 PeerHost => "web.acme.com",
46 PeerPort => "https",
47 %{ $sslopts },
48 );
49
51 Authen::Credential, IO::Socket::SSL,
52 <http://en.wikipedia.org/wiki/X.509>.
53
55 Lionel Cons <http://cern.ch/lionel.cons>
56
57 Copyright (C) CERN 2011-2015
58
59
60
61perl v5.28.0 2015-02-19 Authen::Credential::x509(3)