Gist 3c568768a4a26a99f57fcfc205cdfd6c
✓ Published0🌍 Public
CCarlos-Augusto
Last edited Oct 31, 2021
Created on Oct 27, 2021
This example demonstrates a client-side verification request for a digital health certificate, sending an encrypted payload to the Ubirch API. It shows how to authenticate with mutual TLS using a local PEM certificate and key file, then posts the certificate data as JSON. The code relies on the Node.js `request` library and the `fs` module to read the credential files, with the API endpoint configured for the `api.uve.demo.ubirch.com` host. The response body, containing the verification result, is logged to the console along with any errors.
AI-generated description