PISA Pakistan — Community CERT

← ⚙️ GRC & PECA — Governance, Risk, Compliance

19. Cryptographic Controls and PKI Implementation Using NADRA's National PKI

⏱ 8 min

Cryptographic Controls and PKI Implementation Using NADRA's National PKI

1. Why Cryptographic Controls Matter in Pakistan

The State Bank of Pakistan (SBP) mandates that all online banking channels protect data in transit with strong encryption. The Pakistan Telecommunication Authority (PTA) requires telecom operators to encrypt subscriber data on core networks. Failure to comply can result in regulatory penalties and loss of consumer trust, as seen after the 2023 data leak of NADRA records.

2. Core Concepts: TLS, Certificates, and Hashing

  • TLS 1.3 provides forward secrecy and reduces handshake latency.
  • Digital certificates bind public keys to entity identities; they must be issued by a trusted Certificate Authority (CA).
  • Hashing (SHA‑256 minimum) ensures data integrity for API payloads and document signing.

3. NADRA's National PKI Overview

NADRA operates Pakistan’s National PKI, issuing certificates to government agencies, banks, and telecom operators for services such as e‑Sahulat, e‑Filing, and secure email. The PKI hierarchy includes a root CA, intermediate CAs, and a trust store that is pre‑loaded on all NADRA‑enabled devices.

4. Implementing TLS 1.3 in Your Services

  1. Obtain a Certificate – request from NADRA CA or use Let’s Encrypt for internal tools.
  2. Configure Server – enable TLS 1.3, disable older protocols, set strong cipher suites (e.g., TLS_AES_256_GCM_SHA384).
  3. Enforce HSTS – add Strict-Transport-Security header with a 1‑year max‑age.
  4. Mobile Apps – implement certificate pinning for easypaisa and JazzCash SDKs to prevent MITM attacks.

5. Managing Certificate Lifecycle

  • Renewal: automate with Certbot or Azure Key Vault; set calendar alerts 30 days before expiry.
  • Revocation: publish CRLs or enable OCSP stapling; use Hardware Security Modules (HSMs) to protect private keys.
  • Audit: run OpenSSL scans (openssl s_client -connect) weekly and log results to ELK.

6. Do / Don't

  • Do rotate keys annually and keep the root certificate in an offline HSM.
  • Don’t use self‑signed certificates in production environments exposed to consumers.

7. Takeaway

Perform a TLS audit on all public endpoints today. Enforce TLS 1.2+ and enable certificate pinning in mobile applications to meet SBP and PTA requirements.

← PrevNext →