Repository navigation
Description
What version of Codex CLI is running?
codex-cli 0.154.0
What subscription do you have?
Pro
Which model were you using?
gpt-6-astra
What platform is your computer?
Darwin 25.5.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
No response
Codex doctor report
What issue are you seeing?
Codex 0.154.0’s network proxy generates host certificates without an Authority Key
Identifier (AKI). Python 3.14 rejects them under its default TLS verification settings:
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed:
Missing Authority Key Identifier (_ssl.c:1077)
This causes otherwise-allowed HTTPS reads to fail inside the sandbox. The agent then
requests approval to retry outside it.
Environment
- macOS ARM64
- Official Codex 0.154.0, using app-server
- Network proxy enabled, limited mode
- api.fivetran.com explicitly allowed
- Python 3.14, using urllib.request.urlopen() with default certificate verification
Suggested fix
In codex-rs/network-proxy/src/certs.rs, within issue_host_certificate_pem(), enable AKI
before signing:
params.use_authority_key_identifier_extension = true;
Validation
Using the original and corrected certificate-generation functions with the pinned rcgen
0.14.9:
Verification Original certificate With AKI enabled
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
OpenSSL verify -x509_strict Error 85: Missing Authority Key Pass
Identifier
─────────────────────────────────
Python 3.14 default TLS context Same verification failure Pass
The corrected certificate passes without disabling verification or changing trust policy.
Validation covered certificate generation and TLS handshakes; we have not rebuilt the full
Codex binary.
An HTTPS proxy regression test using Python’s default TLS context would help catch this;
HTTP-only proxy tests do not exercise certificate validation.
What steps can reproduce the bug?
Reproduction
- Enable the network proxy and allow an HTTPS destination.
- Execute a Python HTTPS GET inside the sandbox using urllib.request.urlopen().
- Observe the certificate verification failure.
A certificate-only probe through the proxy confirmed:
Subject: CN=rcgen self signed cert
Issuer: CN=network_proxy MITM CA
Extensions:
2.5.29.17 Subject Alternative Name
2.5.29.15 Key Usage
2.5.29.37 Extended Key Usage
Authority Key Identifier: absent
What is the expected behavior?
The corrected certificate passes without disabling verification or changing trust policy.
Validation covered certificate generation and TLS handshakes; we have not rebuilt the full
Codex binary.
Additional information
No response
Activity
dcrakesh commentedon Oct 8, 2026
Additional Linux Codex 0.161.0 reproduction: native verification code 85
Adding a sanitized follow-up from a separate installation. This is a certificate-compatibility report, not a request to disable certificate verification or bypass the managed proxy.
Environment
Observed failure
An allowed HTTPS fetch for a public dependency failed with a native
SSLCertVerificationErrorcode 85, which the installed OpenSSL identifies as Missing Authority Key Identifier. A bounded exception inspector recovered a single code from the Requests/urllib3 exception chain, with complete traversal and no conflicting code.The actual child process passed its managed-CA preflight. The helper supplied the validated managed CA bundle explicitly as per-request
verify=CA_PATH, retainedtrust_env=False, and used only the configured explicit proxy. This ruled out the previously suspected omission of the managed bundle for that attempt; it did not produce a successful TLS connection.The failed peer certificate/chain was not captured. Attribution to the certificate generator below is supported by retained invocation/configuration and version-pinned source analysis, not direct inspection of the failed peer chain or binary disassembly. No repaired runtime or successful package download is claimed.
Pinned source evidence
Codex release source at commit
979011409de0a60b52f179721948e65531d26144starts the managed proxy in the task's Linux CLI process. Relevant public sources:The release lockfile resolves rcgen 0.14.9. Inspection of its certificate parameters/serialization and issuer/extension code shows that the host parameters default AKI to disabled. Enabling the following before signing emits a noncritical AKI derived from the issuer's Subject Key Identifier:
Applicability and reversal of this one-line change were checked against isolated source fixtures. No Rust certificate generator or complete patched Codex binary was built or executed.
Offline reproduction on the installed client software
Five guarded, entirely in-memory synthetic TLS cases produced:
All cases retained identical strict verification flags, certificate-required mode and hostname checking. They used MemoryBIO pairs without sockets, DNS, external requests or system trust changes. These tests demonstrate the proposed mechanism with synthetic certificates; they are not validation of the actual Rust generator or a repaired executable. Additional offline helper/policy tests are likewise not substitutes for artifact-level testing.
Requested maintainer guidance
Please confirm whether this issuer behavior is recognized and whether an official fixed Linux x86_64 release or supported backport is available or planned. For a candidate, please identify the exact version/source commit and verifiable artifact checksum or build provenance.
A regression covering the actual generator's DNS/IP host certificates, AKI-to-issuer-SKI matching and noncriticality, plus strict TLS positive and hostname/expiry/untrusted-issuer negative cases would allow validation without weakening the client. Existing SANs, signatures, key usages, CA constraints and sandbox/proxy enforcement should remain unchanged.
No fixed vendor artifact, vendor commitment or recovery date has been established on this installation. We have not disabled strict verification, added unrelated trust roots, bypassed the proxy, downgraded the client, or replaced the installed executable.
This follow-up intentionally omits private project references, account and infrastructure identifiers, local user paths, credentials, raw logs, certificate contents and business data.
ediril commentedon Oct 21, 2026
Could someone please look into this?