Adding a new certificate to ADF.ARA-M of sysmoEUICC1-C2G?

Hi,

first of all, thank you for your great work on SIM technology and everything around it.

For my research, I’d like to add a new certificate to a sysmoEUICC1-C2G instead of using the pre-installed one. Here’s what I did and the error I’m seeing:

pySIM-shell (00:MF/ADF.ISD-R)> select ADF.ARA-M
null

pySIM-shell (00:MF/ADF.ARA-M)> aram_get_all
[
    {
        "response_all_ref_ar_do": [
            {
                "ref_ar_do": [
                    {
                        "ref_do": [
                            {
                                "aid_ref_do": "ffffffffffff"
                            },
                            {
                                "dev_app_id_ref_do": "e46872f28b350b7e1f140de535c2a8d5804f0be3"
                            }
                        ]
                    },
                    {
                        "ar_do": [
                            {
                                "apdu_ar_do": {
                                    "generic_access_rule": "always"
                                }
                            },
                            {
                                "perm_ar_do": {
                                    "permissions": "0000000000000001"
                                }
                            }
                        ]
                    }
                ]
            },
...
]}

pySIM-shell (00:MF/ADF.ARA-M)> aram_store_ref_ar_do --aid FFFFFFFFFFFF --device-app-id XXXXXXXXXXXXXXXXXXXXXXXXXXXXX --apdu-always --android-permissions 0000000000000001
EXCEPTION of type 'SwMatchError' occurred with message: SW match failed! Expected 9000 and got 6985: ARA-M - Conditions not satisfied
To enable full traceback, run the following command: 'set debug true'

Do you have any guidance on how to correctly add the certificate, or on what might trigger the ARA-M “Conditions not satisfied” (SW 6985) in this context?

Thanks in advance!

Hi Tobias,

this is nothing that a user can do, only the eUICC manufacturer.

Explanation: The ARA-M of the sysmoEUICC1-C2G lives in the ISD-R. That is the root security domain of the eUICC manufacturer (sysmocom in this case).

Thisis different from a physical UICC/USIM (or an eSIM profile) with an ARA-M applet inside, which is part of the ISD-P, the security domain of the MNO issuing the profile… wehre in the case of the sysmoISIM product line where the customer of sysmocom is the (usually lab/research) MNO who has access to that domain.

Hi,

thanks a lot for the clear explanation!

For my research setup it would be very helpful to have an Android application which can use carrier privileges with eUICC sim cards. Right now only CoIMS is supported (e46872f28b350b7e1f140de535c2a8d5804f0be3) by sysmoEUICC1-C2G, but that application has limited features and is closed-source (Android App source code · Issue #14 · herlesupreeth/CoIMS_Wiki · GitHub).

So to fully use carrier-privileged features I must implement a custom Android app and add its signing hash. The user-manual mentions the possibility of removing ARA-M before shipping. Would it also be possible to add an additional signing hash (for my custom app) before shipping?

Thanks again for your help.

I think can try use ESTKme Light or Plus product.

  1. Allowed user defined as a ARA-M value in STK menu.
  2. Provide SSD-key (Supplementary Security Domain), but needs contact CS got it.

Thanks for your reply, I’ll give it a try. :slight_smile:

The plan for sysmoEUICC users with a request to change the ARA-M in the field is to offer some kind of online service. The user would run a python program connecting the eUICC with a sysmocom-hosted server/service, and the user could then select what kind of ARA-M to add or remove. The server then establishes a SCP03 session using te secret key material and performs the required reconfiguration.

1 Like