Certificate Management

Full reference for reading, selecting, validating, and exporting DSC certificates.

All features supported

Every certificate management capability listed below is implemented and working in SecureSign Mobile App and Desktop Software. Chain validation, CRL, and OCSP checks run automatically before signing.

Overview

SecureSign reads X.509 certificates from the connected DSC token, validates the chain against CCA India root CAs, checks expiry and revocation (CRL/OCSP), and returns structured CertificateInfo in API responses.

  • Users select a certificate in the product UI when multiple are present.
  • Portals can pre-select via certSerial on sign requests.
  • Public certificates can be exported as PEM for server-side validation.

Platform Support

FeatureMobile AppDesktop SoftwareREST API
Read CertificateSign callbackGET /certificatesGET /certificates
Read All CertificatesProduct UIGET /certificatesGET /certificates
Certificate SelectioncertSerial filtercertSerial paramcertSerial param
View Certificate DetailsCertificateInfoGET /certificates/{serial}GET /certificates/{serial}
Chain ValidationBuilt-inBuilt-inPOST /certificates/validate
Expiry CheckvalidTovalidTovalidate response
CRL CheckValidation engineValidation enginePOST /certificates/validate
OCSP ValidationValidation engineValidation enginePOST /certificates/validate
Export Public CertificatecertificatePemGET /certificates/{serial}GET /certificates/{serial}
Certificate SearchProduct UIQuery paramsGET /certificates?subject=
Alias ManagementProduct UIProduct UI

CertificateInfo Model

FieldTypeDescription
subjectstringFull DN (e.g. CN=Rajesh Kumar,O=Example Pvt Ltd)
subjectCommonNamestringCN extracted from subject
issuerstringIssuing CA DN
issuerCNstringIssuing CA common name
serialNumberstringCertificate serial (hex)
validFromstringISO 8601 not-before
validTostringISO 8601 not-after
dscIssuerstringResolved CA vendor (e.g. eMudhra)
keyUsagestring[]digitalSignature, nonRepudiation, etc.
certificatePemstringPEM-encoded public certificate
aliasstringToken slot alias (when available)

Supported Certifying Authorities (India)

Certificates must be issued by a CCA-licensed Certifying Authority. Supported CAs: eMudhra, Capricorn, (n)Code Solutions, GNFC, VSign, IDSign, SignX, Pantasign, XtraTrust, SafeScrypt, CDSL Ventures, ProDigiSign, Care4Sign, CSC, and NIC (government entities only).

See the full vendor table on Device & Token — Supported DSC Vendors.

Validation

POST /certificates/validate performs chain, expiry, CRL, and OCSP checks:

FieldTypeRequiredDescription
certificatePemstringYesPEM-encoded certificate to validate
checkRevocationbooleanNoRun CRL/OCSP checks (default true)
checkChainbooleanNoValidate to CCA root (default true)

Examples

const params = new URLSearchParams({
  requestId: crypto.randomUUID(),
  hashBase64: sha256Base64,
  hashAlgo: 'SHA256',
  documentType: 'hash',
  callbackUrl: 'https://portal.example.gov.in/sign/callback',
  apiKey: 'ss_live_abc123xyz'
});
window.location.href = `securesign://sign?${params}`;
// Certificate list shown in Mobile App / Desktop Software UI; metadata returned in callback

Sign with certificate selection

securesign://sign?requestId=...&hashBase64=...
{
  "hashBase64": "qT6d3x8K...",
  "hashAlgo": "SHA256",
  "certSerial": "4A3B2C1D"
}

Response

GET /certificates

[{"subjectCN":"Rajesh Kumar","issuerCN":"eMudhra Sub CA","serialNumber":"4A3B2C1D","validFrom":"2025-01-01T00:00:00Z","validTo":"2027-01-01T00:00:00Z","dscIssuer":"eMudhra","keyUsage":["digitalSignature","nonRepudiation"]}]

POST /certificates/validate

{"valid":true,"chainValid":true,"notExpired":true,"revocationStatus":"good","ocspValid":true,"dscIssuer":"eMudhra"}

Errors

CodeCauseResolution
SS_CERT_EXPIREDCertificate past validToRenew DSC with issuing CA
SS_CERT_REVOKEDCRL or OCSP reports revokedContact CA; obtain new certificate
SS_CERT_CHAIN_INVALIDChain does not reach CCA rootVerify token is from a supported CA
SS_CERT_NOT_FOUNDcertSerial not on tokenCheck serial; let user select in UI
SS_TOKEN_NOT_FOUNDNo token connectedInsert DSC token

See also Certificates API.