A
1ade8dfc2c
Upgrade create_esim_profile from a loose JSON mock to a structured profile-package-v2 that embeds real 3GPP field encodings: - enc_iccid: EF_ICCID nibble-swapped BCD, 10-byte 0xF-padded (TS 31.102 4.2.1) - enc_imsi: EF_IMSI length octet + parity nibble + nibble-swapped BCD (4.2.2) - build_lpa_activation_code: SGP.22 LPA:1$<smdp>$<matching-id> string Wire apn and smdp_address through config into the provisioning call; add smdp_address to config.yaml.example. Add CHANGELOG.md. Full SGP.22 SAIP/ASN.1 UPP generation via osmocom pySim remains a follow-up (not on PyPI; needs SM-DP+/LPA for OTA install) and is noted in the changelog. Tests: +9 (encoders, round-trips, activation code); 53 pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
36 lines
733 B
Plaintext
36 lines
733 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
|
|
|
|
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
|