Is it possible to download a test profile ISDP to sysmoEUICC1-CT2, then install test applet packages using SCP02? I mean, can we use sysmoEUICC1-CT2 in the same way as sysmoISIM-SJA5, for testing applet code, except we can test JC 3.0.5 (oneshot, etc)? Or do we need to build SAIP each iteration and download it?
I think there should be technically no problem creating a profile that permits SCP02/SCP03 to the ISD-P. I think it is well within what you can encode in the SAIP format.
Also, even if SCP02/SCP03 should not work for some reason, you can always use RAM over SCP80/SCP81 with an ISD-P, if you enable/confiugre it problerly in the SAIP.
Before I experiment with real cards – anyone got a example? Or just info on which PE(s) hold SCP03 key material?
SCP02/SCP03 to the ISD-P is fully expressible in SAIP, and if that path is ever blocked you can fall back to RAM over SCP80/81 to the same ISD-P, as long as the keysets are in the profile.
Yes, you can use the C2T the same way as the SJA5 for applet iteration, with one setup difference. On the SJA5 you talk SCP02 straight to the card ISD. On the eUICC the card ISD-R permits only SCP03 and is not your applet target anyway. Your applet target is the ISD-P of an enabled profile, and you establish the secure channel to that profile SD using the profile’s own SD key material, not the eUICC keys.
Which PE holds the key material: the SecurityDomain ProfileElement of the profile. In pySim SAIP terms that is ProfileElementSD for the profile ISD/MNO-SD, or ProfileElementSSD for a supplementary SD. The keys sit in that PE’s keyList as SecurityDomainKey entries indexed by KVN and KID, and the permitted secure channels are declared in the SD install params via add_scp, for example
add_scp(0x02, 0x55) for SCP02 add_scp(0x03, 0x70) for SCP03
That same PE is where you would add the SCP80/81 OTA keyset if you want RAM. The eUICC-level ISD-R and ECASD SCP03 keys are separate, personalised per EID and looked up by EID in pySim, and are not the applet-install target, so don’t conflate them with the profile SD keys.
Do you need to rebuild SAIP each iteration: no. Build the SAIP once with a profile whose SD carries an SCP02 or SCP03 keyset and the Authorized Management privilege, download and enable it once, and from then the ISD-P behaves as an ordinary GP security domain. You establish SCP02/03 to it and do LOAD then INSTALL of your CAP every iteration, exactly like the SJA5 ISD flow. You only rebuild and redownload the SAIP when you need to change the SD keyset or its privileges, not for each applet build.
Two caveats before you burn a card. The stock TS.48 test profiles from the sysmocom test SM-DP+ are minimal and are not guaranteed to ship an AM-privileged SCP02/03 keyset on their ISD-P for arbitrary applet loading, so plan on building one custom SAIP that adds that keyset plus the privilege and iterating against it, rather than expecting the default TS.48 profile to accept applet installs out of the box.
And JC 3.0.5 features like oneshot are a platform capability, independent of the install path. Whether the eUICC OS exposes the JC 3.0.5 API on your specific C2T build is worth confirming against the sysmoEUICC platform/COS version before you design tests around 3.0.5-only APIs, rather than assuming parity with the SJA5.