Generate a key pair
Generate a public/private key pair using the Cloudflare matched-data-cli
↗ command-line tool. After generating a key pair, enter the generated public key in the payload logging configuration.
Do the following:
-
Download ↗ the
matched-data-cli
tool for your platform from the Releases page on GitHub, under Assets. -
Extract the content of the downloaded
.tar.gz
file to a local folder. -
Open a terminal and go to the local folder containing the
matched-data-cli
tool. -
Run the following command:
After generating the key pair, copy the public key value and enter it in the payload logging configuration.
Troubleshooting macOS errors
If you are using macOS, the operating system may block the matched-data-cli
tool, depending on your security settings.
For instructions on how to execute unsigned binaries like the matched-data-cli
tool in macOS, refer to the Safely open apps on your Mac ↗ page in Apple Support.