code wiki / _hdl_build / nx_cert_autorenew_gate.nx

nx_cert_autorenew_gate.nx

buildroot/runtime/_hdl_build/nx_cert_autorenew_gate.nx

4520 B69 linesdepth 7pulls 9 transitivereach 0 importersview sourcekind gate/prooftopic cert
docsdependenciesstructsconstsfunctions

about

nx_cert_autorenew_gate.nx -- SOVEREIGN gate for the per-domain wildcard cert AUTO-RENEWAL logic. Proves the LOGIC the unattended renewer rests on, WITHOUT a heavy live LE issuance (that burns LE budget and needs the Porkbun vault + 4-min DNS propagation): the gate exercises only pure functions. (a) VERDICT: synthesize a validity field, parse notAfter via the REUSED x509_validity_get, and assert cm_verdict -> CM_WARN for a cert inside the 21d window, CM_OK far out, CM_EXPIRED past. This is the exact threshold core the live dual-epoch TLS probe (car_live_verdict) encodes. (b) MAPPING: the domain -> path mapping the driver pushes on is byte-correct -- le_<label>_* for the live SNI cert, /tmp/new_<domain>_* for the issue output -- for BOTH nishifamily.com and andelinwest.com. (c) TRIGGER: car_should_renew fires ONLY on WARN/EXPIRED (never on OK or NOCERT/unreachable). exit 0 = GREEN ; exit N = assertion N failed. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_cert_autorenew_lib.nx nx_assert.nx nx_cert_autorenew_gate.nx

imports: nx_cert_autorenew_lib.nxnx_assert.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main g_time x509_validity_get sys_mmap x509_read_time_tlv parse_utctime parse_2digit days_from_civil parse_gentime parse_4digit parse_2digit ↻ parse_2digit ↻ days_from_civil ↻ nx_puts_err sys_write nx_puti_err sys_mmap ↻ sys_write ↻ cm_verdict cm_days_until car_label car_streq car_issue_der car_put car_issue_key car_put ↻ car_remote_der car_put ↻ car_remote_key car_put ↻ car_should_renew

structs

none

consts

none

functions

18func g_time(buf: *u8, off: i64, s: *u8) -> i64
called by 1: main
24func main() -> i64