A
b88fe4eed1
New server/saip_profile.py encodes a DER ProfileElement sequence (ProfileHeader
with ICCID + Milenage AKA parameters carrying Ki/OPc) using asn1tools against
the official PE_Definitions SAIP ASN.1 schema. It locates the schema from an
installed osmocom pySim (or SAIP_ASN_PATH) via find_spec WITHOUT importing
pySim's Python package, so it avoids the pyscard/smpp card-reader stack — the
only runtime dep is asn1tools.
Selectable via profile.format ("v2" default | "saip"); the app falls back to
profile-package-v2 with a warning when SAIP prerequisites are absent. IMSI and
other EFs (USIM-template PEs) are the documented next layer.
Add requirements-saip.txt, pytest.ini (silence asn1tools warnings), README and
config updates. Tests: +6 (encode/round-trip/credentials, app emit + fallback);
92 pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
38 lines
963 B
Plaintext
38 lines
963 B
Plaintext
network:
|
|
mcc: "302"
|
|
mnc: "720"
|
|
plmn: "302720"
|
|
op_key: "63bfa50ee6523365ff14c1f45f88737d" # 16-byte hex OP key
|
|
|
|
wifi:
|
|
ssid: "Emergency-5G"
|
|
channel: 6
|
|
ip: "192.168.4.1"
|
|
subnet: "192.168.4.0/24"
|
|
dhcp_range: "192.168.4.10,192.168.4.250"
|
|
|
|
server:
|
|
host: "0.0.0.0"
|
|
port: 5000
|
|
debug: false
|
|
admin_token: "" # set a secret to enable /api/export (sent as X-Admin-Token); empty = export disabled
|
|
|
|
database:
|
|
path: "/opt/esim-provisioning/data/subscribers.db"
|
|
|
|
rate_limiting:
|
|
max_profiles_per_mac: 1
|
|
window_hours: 1
|
|
|
|
core:
|
|
type: "none" # "open5gs" | "free5gc" | "none"
|
|
mongodb_uri: "mongodb://localhost:27017"
|
|
database_name: "open5gs"
|
|
|
|
profile:
|
|
carrier_name: "Ad-Hoc Network"
|
|
profile_name: "Emergency 5G"
|
|
apn: "internet"
|
|
smdp_address: "esim.local" # LPA activation-code SM-DP+ address
|
|
format: "v2" # "v2" (JSON, always available) | "saip" (real SGP.22 DER; needs requirements-saip.txt)
|