Verify Webhook Signature
lexware_verify_webhook_signatureVerify a Lexware webhook signature by passing the raw request body and the X-Lxo-Signature header. Uses RSA-SHA512 with base64 encoding to confirm authenticity.
Instructions
Verify a Lexware webhook X-Lxo-Signature (RSA-SHA512, base64) against the raw request body. Pass the EXACT raw HTTP body bytes you received — do not JSON.parse/stringify round-trip, as Lexware signs the compact JSON as transmitted (whitespace and key order matter). On first call the public key is fetched once from developers.lexware.io and cached for the process lifetime; set LEXWARE_WEBHOOK_PUBLIC_KEY (PEM) to override (recommended for production where you cannot tolerate one-time TLS-substitution risk on the public-key fetch).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | Raw HTTP request body received from Lexware (verbatim, untransformed). | |
| signature | Yes | Value of the X-Lxo-Signature header (base64). |