nx_acme_directory_live.nx
buildroot/runtime/nx_acme_directory_live.nx
about
nx_acme_directory_live.nx -- FIRST live ACME network step: GET the
Let's Encrypt directory over the sovereign TLS 1.3 client and print the
JSON. Unauthenticated + not rate-limited (it is the API entry point),
so it is the safe bottom-up milestone: it proves TLS to LE (cert chains
to ISRG Root X1, present in the Mozilla store) + HTTP parse + gives real
directory JSON to build the URL extractor against.
Reuses the proven live-HTTPS path (nx_https_get_live_real_ca_test):
load trust store -> url_for_fetch -> url_connect -> session_run ->
get_complete -> http_response_parse.
Default target: STAGING is "acme-staging-v02.api.letsencrypt.org" but
staging chains to the "(STAGING) Pretend Pear X1" root which is NOT in
the Mozilla bundle -> validation would fail. PRODUCTION directory GET
is harmless + Mozilla-trusted, so we hit production here just to read
endpoint URLs; actual issuance picks the env later.
license_tier: ORIGINAL (composes the shipped TLS client + HTTP parse)
dependencies 10 imports · 0 importers
imports: nx_syscalls.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_tls13_client_validate_certificate.nxnx_tls13_client_session_run.nxnx_https_url_for_fetch.nxnx_https_url_connect.nxnx_https_get_complete.nxnx_http_response_parse.nxnx_csprng.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 30 | const K_MAGIC_4194304: i64 = 4194304 |
| 31 | const K_MAGIC_1779284141: i64 = 1779284141 |
| 32 | const K_MAGIC_65536: i64 = 65536 |
| 33 | const K_MAGIC_16384: i64 = 16384 |
functions
| 35 | func main() -> i64 |