AS2/FAQ.pm untested

filter: Statementstmt n/a Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a SCAR -
1 =head1 NAME
2
3 Net::AS2::FAQ - Documents about Net::AS2 that does not fit the main document
4
5 =head1 Preparing Certificates
6
7 Keys and certificates in PEM forms are expected in L<Net::AS2>.
8
9 These could be prepared with the L<OpenSSL|http://openssl.org/> toolchain as follows:
10
11 =over 4
12
13 =item Generating private key
14
15 openssl genrsa -out my.key 1024
16
17 Please keep the key B<ONLY> to yourself.
18
19 The content could be used in the constructor.
20
21 =item Generating self-signed certificate
22
23 With this L<copy of openssl.conf|http://www.dylanbeattie.net/docs/openssl.conf>,
24
25 openssl req -config openssl.conf -new -x509 -days 3650 -key my.key -out my.cert
26
27 Exchange the certificate with the communication partner.
28
29 The content could be used in the constructor.
30
31 =item Decoding .p12/.pfx certificate
32
33 In case you have generated a PKCS #12 key/certificate somewhere, you could
34 split them into key and certificate in PEM format with the following.
35
36 openssl pkcs12 -in my.pfx -nodes
37
38 =item DER format to PEM format
39
40 If the certificate file is in binary format, most likely it is in the DER format.
41 Convert it into the PEM format with the following.
42
43 openssl x509 -inform DER -outform PEM -in my.der.cert -out my.pem.cert
44
45 Ditto for keys
46
47 openssl rsa -inform DER -outform PEM -in my.der.key -out my.pem.key
48
49 =back
50
51 =head1 SEE ALSO
52
53 L<Net::AS2>