The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Business::TrueLayer::Signer - Class to handle request signing TrueLayer requests as described by https://github.com/TrueLayer/truelayer-signing/blob/main/request-signing-v2.md

DESCRIPTION

To use the TrueLayer Payments API v3, you need a public and private key pair. You can generate these however you want, but we recommend OpenSSL on Windows or LibreSSL on macOS or Linux. These methods are usually available on these operating systems by default.

To generate your private key, run the following command in your terminal. The keys you generate will save to your current directory.

    openssl ecparam -genkey -name secp521r1 -noout -out ec512-private-key.pem

Then, to generate your public key, run this command in your terminal.

    openssl ec -in ec512-private-key.pem -pubout -out ec512-public-key.pem

You then need to upload the public key to the TrueLayer console.

Having done that you can supply the path to your private key when using the main Business::TrueLayer module. You shouldn't need to do anything else here, the distribution will handle signing when creating requests.