When the eIM processes the EsIpa using the HTTP interface, the specification mentions that it needs to support JSON and ASN.1 data formats. However, when using the MQTT protocol, which data format should be used?
In the MQTT case, it’s raw DER-encoded ASN.1 that is supposed to be inside MQTT. In my understanding the idea is that a small embedded device (running the IPA) should not be burdened with the complexity of HTTP and JSON. Also, MQTT messages are of course much smaller and hence more efficient if they contain binary payload.
See SGP.32 v1.2 section B.2.3
Thank you very much.
Another difficult decision I’ve encountered is handling ASN.1 data. Currently, I’m using jasn1-compiler to parse ASN.1 data into corresponding objects. While this method is very convenient, it throws errors when the ASN.1 data contains unknown or custom fields—which has been quite a headache for me. On the other hand, if I use the TLV (Tag-Length-Value) method for parsing, the code becomes overly bloated. Are there any better solutions to this problem?
One more question: If an SM-DP+ needs to support SGP.32, does it require adding a new ES9+` interface? It can’t reuse the existing ES9+ interface, right?
I believe ES9+’ is the same as ES9+ from the SM-DP+ perspective. There are some new restrictions on the client, but to the server, I think it’s just ES9+. The DP+ doesn’t need to know the “LPA” it’s talking to is actually an eIM, or what an eIM is, or whether SGP32 is even a thing.
With ASN1 and these RSP interfaces, I’ve had to roll my own. In one case I used Golang’s ASN resources for a DP+ proxy which wasn’t too bad. In the other case, it was embedded C code for an LPA and that was a lot of work. There is just stuff in SGP22 and 32 that breaks the free ASN tools. That’s the telecom way. The people on these committees have OSS tools and they just go ham with exotic syntax.
What confuses me is why GSMA redefined the interface named ES9+` instead of using the original one. However, after referring to SGP.32, it is indeed indicated that this redefined interface is completely consistent with ES9+.
Nevertheless, it is mentioned in Section 5.9.2 of SGP.32 that EuiccInfo2 has added some attributes for IoT. Handling such ASN.1 data with custom fields is really quite a hassle.
ASN decoders ignore unknown fields, and this works pretty well, but honestly I wonder how much cross vendor testing is happening with different eUICCs authenticating with different DP+ servers through different eIMs.
Compatibility testing is indeed a major project.Additionally, when I was recently researching eIM, I encountered another confusing point: apart from using eIMTransactionId to clearly indicate that a profile should be downloaded via SMDS, how should eIM identify the IPA’s intent? According to GSMA specifications, the inputs for ES9+ and ES11+ are identical, and only the return results of AuthenticateClient differ. Is it true that eIM can only determine the intent based on the return content of the interface?
How DS fits into SGP.32 is unclear to me, to say the least. ES10C is also “deprecated” in SGP.32 so it seems like the interface has to be between the eIM and DS and not the IPA and DS. Not sure how that’s supposed to work.
Also unclear: what happens if a UICC is bound to more than one eIM? Who arbitrates when one eIM accidentally deletes profiles installed by another eIM? What happens if two eIMs get in a fight over which profile should be enabled? Where do notifications go, all eIMs or just the one eIM who “owns” the profile and what does owning a profile mean anyway?
I know SGP.32 the future but it seems kinda messed up honestly.
As far as I understand, an eIM can only delete the profiles downloaded through itself, and notifications will be reported to their respective eIMs.
However, although ES10c has been deprecated, IPA can still perform deletion via deleteProfile. This operation is not restricted by eIM (it may also be because the SGP.32 eUICC test card I have is compatible with SGP.22).
Regarding the issue of enable, in my opinion, it depends on the execution time: the profile that is executed last will be in the enable state. Of course, for eUICC cards that support simultaneous enablement of multiple profiles, I am not yet clear about the specific situation.
What you say about the eim makes sense, and it could be added to the spec, but it’s not really in the spec right now AFAIK. I don’t think all the eims, euiccs, and ipas will be on the same page implementing (and enforcing) it.
And in fleshing this out, there are important edge cases – if the eIM can only delete profiles downloaded through itself, what happens when you change eIMs? Can the “new” eIM clean up from the previous eIM by deleting its profiles? Maybe the old eim cleans itself up before it leaves but this could create a connectivity gap and inadvertantly disconnect the new eim. The two eims need to coordinate, etc.
I have rechecked the specifications of SGP.32, and sections 2.11.1.1.3 and 3.4.3 in SGP.32 v1.2 mention information related to profile deletion. My current understanding is that the delete command issued by an eIM can delete all Profiles(provided that the eUICC contains the configuration information of this eIM) , even if those Profiles were downloaded and installed by another eIM.
In this case, there will be no situation where Profiles are deleted or become unavailable after updating the eIM.
I apologize for my incorrect statement earlier.