/sign-verify-service

Sign Verify Service

Primary LanguageJavaScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

signature-verification-service

Small service for signing JSON payloads and returning QRCode.

API

The service exposes 2 endpoints

  • POST /certificate/sign send JSON to this endpoint to get a signed QRCode
  • POST /certificate/verify send the QRCode text to verify the signature

Example svs.yml file

http:
  port: 3000
  host: localhost
  auth:
    - username: admin
      password: admin
    - username: 0D5587BF-F12B-4BC9-9D3D-B2C3D607BD6F
      password: 51CB6AA3-0EBE-4DD5-B6DC-3E9FFA3E86EB
keys:
  public: ./certs/dsc-worker.pem
  private: ./certs/dsc-worker.p8
schema: ./schemas/status.json
signature:
  path: /api/sign
verification:
  enabled: false

Enable and disable sign/verify endpoints

If you want to start up a service that either just signs or verifies you can use the keys

signature.enabled: false to disable support for signing verification.enabled: false to disable support for verification

Links