DCM Platform Guide
  • 🌐DCM platform
  • βš™οΈSpecifics of working with the API
    • πŸ”Security stack
    • πŸ”‘Key Generation
    • πŸ”Data encrypting
    • πŸͺƒRetry policy
  • 🎨Design guide
  • πŸ—‚οΈDCM platform's artifacts
  • 🏦Bank
    • πŸ“‹Preparing for integration
    • πŸͺE-commerce
      • πŸ“¦Order and payment
      • πŸ“¨Payment message
        • 1️⃣Validation
        • 2️⃣Бallback 1 β€œPay-in”
        • 3️⃣Callback 3 β€œPay-out”
        • 4️⃣Callback 4 "Credit callback"
      • 🎯Testing
      • πŸ–‡οΈMerchant Onboarding
      • β›”Error reference guide
    • πŸ—ƒοΈAlias database
      • πŸ—οΈAdding alias
      • ↕️"Π‘allback "Alias updated"
      • β˜‘οΈGet alias status
    • πŸ’Έp2p transfers
      • πŸ“²p2p by phone number
        • ⏺️p2p order (to pay)
        • πŸ”Receiver search
        • πŸ—‚οΈGet receiver's data
        • βͺCallback "Pay request"
      • πŸ–‡οΈp2p by deeplink or QR code
        • ⏺️p2p order (to request)
        • Pay request initiation
      • πŸ“¨Payment message
        • 1️⃣Validation
        • 2️⃣Бallback β€œPay-in”
        • 3️⃣Callback "Pay-out"
    • πŸ’²Gross settlement
      • 1️⃣Callback β€œGross_Settlement”
      • 2️⃣Gross_settlement_list
      • 3️⃣Gross_settlement_by_id
      • 4️⃣Gross_settlement_pay
      • 5️⃣Gross_settlement_confirm
      • 6️⃣Gross_settlement_confirm_internal
      • πŸ“§Email notification
    • βœ”οΈReconciliation
  • 🏒Merchant
    • 🏫DCM platform for Merchants
      • πŸ” Integration options
    • πŸ‘¨β€πŸ«Preparing for integration
      • βš™οΈWorking with the API
      • πŸ”‘Key Generation
      • πŸ–₯️Updating interfaces
    • πŸͺE-commerce
      • πŸ“¦Order
        • πŸ’΅Payment through the DCM platform
        • πŸ’³Payment on the Merchant's website
        • πŸ“‹Emitters
        • πŸ“¬Order status
      • 1️⃣Бallback "Pay-in"
  • πŸ“‘Document data
    • πŸ†•Version history
    • πŸ“ƒChange log
Powered by GitBook
On this page
  1. Merchant
  2. Preparing for integration

Key Generation

PreviousWorking with the APINextUpdating interfaces

When establishing a business relationship with DCM platform, the Merchant must generate a cryptographic key pair consisting of a private and public key.

  • The private key is used to sign Orders.

  • The public key is provided to DCM platform to verify Orders received from the Merchant.

Key Generation Procedure and Public Key Format Requirements:

  1. Generate the key pair using an appropriate cryptographic tool.

  2. Copy the public key.

  3. Open the key conversion tool at .

  4. Paste the public key into the field labeled "PEM encoded key or certificate".

  5. In the "Key ID" field, specify the "kid" value (one of the private key parameters).

  6. In the "Key algorithm" field, select "RS256".

  7. In the "Key use" field, select "Signature".

  8. Click "Generate".

  9. Copy the data from the "PEM Generation Results" field.

  10. Host the generated public key data at a corresponding jwks_url containing a "keys" object and the information copied from "PEM Generation Results". Example - https://api-hyncmh.develop.dcmapis.com/api/v1/.well-known/jwks.json

  11. Provide the link to DCM platform. Example - https://api-hyncmh.develop.dcmapis.com/api/v1/.well-known/jwks.json

🏒
πŸ‘¨β€πŸ«
πŸ”‘
https://jwkset.com/generate