Guest mode. You can read posts without signing up. Comments, ratings, job contacts and your own posts open after you sign up and accept the rules. What is Kommit →

Редакция КоммитРедакция портала
commit d1daccd · 14 days ago

EDS in Kazakhstan, part 6: EDS via API — SDK NC, NCANode, signature and verification in your system

🌐 Machine-translated from Russian. Show original

EDS via API for developers in Kazakhstan: official SDK NC RK, open NCANode with REST API, commercial signing services, OCSP, CRL, and TSP services, and how to securely embed signature and verification into your system.

In this part:

What to choose from#

| Option | What is | When is | suitable
| --- | --- | --- |
| NCALayer is on the user side | signature in the browser, the key remains with the person | the website or cabinet where the user signs |
| NUC SDK (Kalkan libraries) | an official set of libraries and test certificates | its own verification and signature on the server, full control over |
| NCANode | an open server with a REST API on top of the NCANode SDK | quickly obtain an HTTP API for verifying and signing |
| Commercial services (e.g., SIGEX) | ready-made cloud API: documents, QR signature via eGov Mobile, digital signature login, | don't want to keep your infrastructure |

Detailed code for browser signature and server verification are covered in the series "EDS and NCALayer for Developers."

NUC RK SDK#

  • Get: sdk.pki.gov.kz, description — pki.gov.kz/developers.
  • The SDK is issued to the owner of the information system or their representative.
  • Included are libraries for signing and verifying and test certificates (updated in October 2025). Use only these, not employee battle keys, for development.
  • Terms of use do not allow the SDK to be made public: do not place its libraries in public repositories or public Docker images.

NCANode#

NCANode is an open project (licensed by MIT), unofficial but widely used:

  • REST API in JSON: signing and verifying CMS, XML (XMLDSig), PDF, certificate verification via OCSP and CRL;
  • runs in Docker, Kalkan libraries are taken from your NUC SDK;
  • Keep it on the internal network — open only your app outside.

NUC services for verification#

ServiceAddressWhy
OCSPhttp://ocsp.pki.gov.kzwhether the certificate has been revoked right now
CRLhttp://crl.pki.gov.kzlists of revoked certificates
TSPhttp://tsp.pki.gov.kztimestamp: proves when the document was signed

What you must check#

  1. The signature is correct — the data has not changed.
  2. Chain to root certificates of the NUC.
  3. Feedback — OCSP or CRL at the time of signing.
  4. Timestamp — for long-term document storage.
  5. The entity — IIN and BIN in the certificate match the one who was supposed to sign.

Skipping the recall or IIN check is the most common mistake: the signature is "mathematically correct," but it is placed with someone else's or revoked key.

Key security in the system#

  • Do not upload user keys to the server: the signature is with the user via NCALayer or eGov Mobile.
  • The organization's server key (for automatic signing) is on a secure medium or in an HSM, the password is in secrets, not in code.
  • Log each signature: what, who, when, verification result.
  • Test on test certificates from the SDK.

🎉 Series completed. Return to contents.

Comments 01 участник · 0 гостей🔒 Rate and discuss after signing up

Comments · 0

No comments yet.Sign in to comment, rate and see all comments.