code wiki / (root) / nx_cert_debug.nx

nx_cert_debug.nx

buildroot/runtime/nx_cert_debug.nx

2596 B52 linesdepth 6pulls 7 transitivereach 0 importersview sourcekind tooltopic cert
docsdependenciesstructsconstsfunctions

about

nx_cert_debug.nx -- debug why nx_cert_monitor misparsed the real fullchain cert. Prints x509_parse's validity_off/len, the raw validity bytes, and the parsed notBefore/notAfter epochs, for the real fullchain + leaf. Oracle: openssl says notAfter = Aug 26 2026 15:35:00 UTC ~= epoch 1787758500.

dependencies 3 imports · 0 importers

nx_x509.nx nx_x509_validity.nx nx_cert_monitor.nx nx_cert_debug.nx

imports: nx_x509.nxnx_x509_validity.nxnx_cert_monitor.nx

imported by: nobody (leaf or entry point)

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

main cm_p dbg_cert cm_read sys_read cm_p ↻ cm_n x509_parse sys_mmap asn1_cursor_init asn1_expect_tag sys_mmap ↻ asn1_read_tlv_header asn1_read_tag asn1_read_length asn1_read_length ↻ x509_read_tlv sys_mmap ↻ asn1_expect_tag ↻ x509_read_alg_id sys_mmap ↻ asn1_expect_tag ↻ dbg_hex dbg_ascii 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 ↻

structs

none

consts

none

functions

8func dbg_hex(b: *u8, off: i64, n: i64) -> i64
called by 1: dbg_cert
19func dbg_ascii(b: *u8, off: i64, n: i64) -> i64
called by 1: dbg_cert
25func dbg_cert(path: *u8) -> i64
47func main() -> i64
calls 2: cm_pdbg_cert