This directory holds the material used by the unit and component tests. The
bulky test data (certificates, UPP templates) is generated by
scripts/extract-testdata.sh; the generated files are committed, and
.dockerignore keeps them out of the container image.
Certificates are read directly from sgp26/ by the SM-DP+/SM-DS. UPP templates
are not read at request time: rsp42 admin upp import --dir testdata/upp loads
them into the upp_templates database table (see make seed), and the example
CSV is loaded into personalization with admin personalization import. The
files here therefore serve as import/fixture sources only.
The certificate tree under sgp26/ uses a stable, normalized layout and file
naming so the project is insulated from GSMA's file-naming changes:
| Path | Content |
|---|---|
sgp26/CertificateIssuer/ |
CI root certificate (DER/PEM) and private key |
sgp26/EUM/ |
EUM certificate and private key |
sgp26/eUICC/ |
eUICC certificate and private key |
sgp26/SM-DP+/DPauth/ |
DP authentication certificate (DER) + key, plus the second identity |
sgp26/SM-DP+/DPpb/ |
DP profile-binding certificate (DER) + key, plus the second identity |
sgp26/SM-DP+/DPtls/ |
DP TLS certificate (PEM) + key, plus the second identity |
sgp26/SM-DS/DSauth/ |
DS authentication certificate (DER) + key |
sgp26/SM-DS/DStls/ |
DS TLS certificate (PEM) + key, plus the alternative identity |
upp/ |
TS.48 test eUICC profiles (UPP / SAIP) |
personalization/profiles.csv |
Example personalization data |
vectors/ |
Static protocol/crypto test vectors |
Canonical file names are CERT_<role>_<curve>.der|.pem and
SK_<role>_<curve>.pem, where <curve> is NIST or BRP.
- SGP.26 certificates come from the GSMA SGP.26 v3.0.2 (2026) test certificate distribution ("Valid Test Cases / Variant O"). They are test credentials intended for interoperability testing and carry no production trust. The DPtls/DStls certificates are valid until 2027-03; the signing certificates (DPauth, DPpb, DSauth) until 2027-07; the CI until 2059.
- TS.48 UPP templates are GSMA TCA test profiles used purely as test fixtures; no third-party implementation code is used at build time.
- These files are test-only and must never be used in production.
Sources are passed explicitly (a local path or an http(s) URL to a directory,
.zip or .tar.gz):
./scripts/extract-testdata.sh \
--sgp26 <SGP.26 distribution> \
--upp <TS.48 UPP tree>make testdata does this with public upstream defaults; override SGP26_SRC /
UPP_SRC for local material. The script is idempotent: it removes and recreates
testdata/sgp26/ and testdata/upp/.