Net::AS2::FAQ - Documents about Net::AS2 that does not fit the main document
Keys and certificates in PEM forms are expected in Net::AS2.
These could be prepared with the OpenSSL toolchain as follows:
openssl genrsa -out my.key 1024
Please keep the key ONLY to yourself.
The content could be used in the constructor.
With this copy of openssl.conf,
openssl req -config openssl.conf -new -x509 -days 3650 -key my.key -out my.cert
Exchange the certificate with the communication partner.
In case you have generated a PKCS #12 key/certificate somewhere, you could split them into key and certificate in PEM format with the following.
openssl pkcs12 -in my.pfx -nodes
If the certificate file is in binary format, most likely it is in the DER format. Convert it into the PEM format with the following.
openssl x509 -inform DER -outform PEM -in my.der.cert -out my.pem.cert
Ditto for keys
openssl rsa -inform DER -outform PEM -in my.der.key -out my.pem.key
To install Net::AS2, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.